My question is how can i apply animation sprite to an enemy when bullet
collides with him???
Develop games in your browser. Powerful, performant & highly capable.
but i have a problem
see i have set the soldier to follow the hero..so i need when hero shoots
dead animation will be played and soldier will be destroyed
how to do that?
Add an event "Soldier: on (animation) finished" animation name: "dead".
In this event, put a "Soldier: destroy" action.
Also make sure that the "dead" animation does not loop.
its working only when i disable
if i turn these follow option its not working..
what the hell is wrong!!!!
Oh right, you need to add a condition in those events.
For each "Soldier.X" comparison add a "Soldier: Animation is playing" "dead" and right click this condition and "invert" it.
This condition will make sure the check for the Soldier.x won't be done when the soldier is "dying".
This is because of how events work, your soldier is having different "states", you need your logic to take it into account.
oh maan it worked!!!
thanks you had made my day..
thankyou so much <img src="smileys/smiley32.gif" border="0" align="middle" />
can you plzz explain me why it was happing so i can understand it brefly!