I need help with a sprite sword fighting. The sprite has a sword and he needs to stab the other. PLEASE HELP!!!
Offline
Hey, Gagamonster,
You could just do this and space could be the signal to attack
when (space v) key pressed switch to costume (costume with sword being thrusted)Hope this helps!
Last edited by iaoumeur (2013-01-11 12:57:48)
Offline
And for the damage, use this command for the enemy:
when gf clicked switch to costume [idle v] set [EnemyHP v] to (100) forever wait until <<touching [player v]?> and <([costume # v] of [player v]) = (attack costume's #)>> switch to costume [hurt v] change [EnemyHP v] by (-1) wait (1) secs switch to costume [idle v]The "idle" and "hurt" costumes are optional. You can also use a hit sound if you want.
Last edited by BLU_Spy (2013-01-11 17:01:35)
Offline