Main Menu
  • Welcome to The RPG Maker Resource Kit.

[GM] Having a character attack the other

Started by Snailer, September 08, 2008, 02:37:43 PM

0 Members and 1 Guest are viewing this topic.

Snailer

this forum is so dead...
( atleast this section is.)

But I need help!

When I have my character press A to go ZWASHAM SLASSH!!!

How do I make sure it acctually hits the target?

Can anyone help me?


tSwitch

create a collision inside the character sprite and on swing have a collision check to see if you hit.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Snailer

I now created it so that when I press A my character changes into a different object which will kill the object on colliding.
It looks a bit weird but it works for now, I created a different object for left and right and its quite allot of work. I think their should be an way easier way though.

Anyways thanks, It works for now :p

tSwitch

idk if I explained it correct or not but...blah

haha, glad it's working I guess


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Arrow

Better idea: The character and the sword are separate sprites. When you swing, create an object using the sword sprite in line with the character sprite. That way, it will kill on collision with the blade, but not the character.

darkblast

#6
Hm, I happen to be a somewhat expirienced with GML, so I might be able to help if you have problems. Because Game Maker has a wide range of variety in the games it could make, (Heck, if I wanted to, I could make an RPG engine if I tried!) it's always a good idea to post screenshots and be really descriptive with your issue. Posting an example exe. also makes a world of good to the people helping you.

~Darkblast
The biggest mistake of RMRK since 2009...
~Darkblast