hi guys, am creating a simple game where a player has two animation-idle and die. when a player get hit the die animation is called just for few seconds then it goes back to idle animation and the games continues. Am stuck guys. i need your assistant
Hi! Look for any action that start the idle animation again once dead animation is finished.
Try something like:
Condition: at the beginning of the scene
Action: pause the timer “die”
Condition:
when Player is in collision with Enemy (or whatever they get hit with)
Actions:
set animation of Player to “die”
unpause the timer “die”
Condition:
the timer “die” is greater than 2 seconds (whatever length of time you want)
Actions:
pause the timer “die”
reset the timer “die”
set animation of Player to idle