The RPG Maker Resource Kit

Other Game Creation => Other Game Making Programs => Topic started by: Snailer on September 08, 2008, 02:37:43 PM

Title: [GM] Having a character attack the other
Post by: Snailer on September 08, 2008, 02:37:43 PM
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?
Title: Re: Having a character attack the other
Post by: Snailer on September 09, 2008, 02:43:18 PM
bump-ump!
Title: Re: Having a character attack the other
Post by: tSwitch on September 09, 2008, 08:17:08 PM
create a collision inside the character sprite and on swing have a collision check to see if you hit.
Title: Re: Having a character attack the other
Post by: Snailer on September 11, 2008, 08:05:19 PM
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
Title: Re: Having a character attack the other
Post by: tSwitch on September 11, 2008, 08:08:11 PM
idk if I explained it correct or not but...blah

haha, glad it's working I guess
Title: Re: Having a character attack the other
Post by: Arrow on November 12, 2008, 01:27:41 AM
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.
Title: Re: Having a character attack the other
Post by: darkblast on July 28, 2009, 04:37:46 AM
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