Page 1 of 1

help with animations and stuff

PostPosted: Mon Feb 26, 2007 9:52 pm
by mr-game
ive making a side scroling game basic and i made it so when he presses space he holds his sword out but how do i make an enimy who touches that animation only die but when he goes back to like walking left and they toutch it they dont die
hope u understand and can guess my spelling mistakes

PostPosted: Tue Feb 27, 2007 2:11 am
by Sgt. Sparky
make a var called stab,
on the attacking key, stab = 1;
on the release stab = 0;
when the enemys collide with the play and stab is = to 1,
they are hurt ect.
when they hit em' and stab is 0. the player is hurt :D

PostPosted: Tue Feb 27, 2007 2:54 am
by DilloDude
I prefer to do this with a separate sword actor. That way you don't have it where you are swining your sword, and the enemy hits you in the back and dies.

PostPosted: Tue Feb 27, 2007 3:00 am
by Sgt. Sparky
you can set up x, and yscreen stuff :D