help with animations and stuff

Game Editor comments and discussion.

help with animations and stuff

Postby mr-game » Mon Feb 26, 2007 9:52 pm

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
erm hi
mr-game
 
Posts: 28
Joined: Mon Jan 29, 2007 10:32 pm
Location: my computer
Score: 1 Give a positive score

Postby Sgt. Sparky » Tue Feb 27, 2007 2:11 am

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
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby DilloDude » Tue Feb 27, 2007 2:54 am

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.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Sgt. Sparky » Tue Feb 27, 2007 3:00 am

you can set up x, and yscreen stuff :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron