I am making a mini game where my character runs through a city and i want the character to trigger birds to fly in distress. However, I don't know how to make that happen because everytime i think i scripted it right, the animation is playing before the character gets there. Please help?!
Thank You.
Kayleigh.
Develop games in your browser. Powerful, performant & highly capable.
You can create an invisible box and use it as a trigger where you want the animation to happen and script it like "on collision with player > play animation".
But there are many ways to do it so that was just an example
I tried that and it still wouldn't work aha
Do you have collisions enabled and have you checked the collision polygon on the sprites?
And is the animation correct?
Hard to say what the problem is without the capx
oh, i figured out what was the issue. I basically did System>OnStartOfLayout/Bird>StopAnimation and with what you said, it finally plays when the character crosses aha
Thank You!
Ok, glad you found the problem. Good luck with your project!