Some help with Animation Stop/Start Please!
I have setup an Enemy that chases the main player and this works fine. I now want to have the enemy animate when its moving, but stop animating when it stops moving because its hit an obsticle, but everything I try the enemy keeps on animating even when its stationery.
The guide in wiki for animation stop/start doesn't seem to work here as this is not controlled by key commands but a constant chase action.
Thanks
JF
The guide in wiki for animation stop/start doesn't seem to work here as this is not controlled by key commands but a constant chase action.
Thanks
JF
Comments
It seems so simple:
A chasing enemy - animate when moving and stop animation when not moving!
But this ones got me!
- Make a Game attribute called something like StopAnimatingEnemy
- Make rule saying only animate the enemy if this attribute is false
- Make second rule saying if collides with wall change attribute to true
This way it will stop animating when it hits the wall. Sorry if I misunderstood. But hope its helps.
Do similar to what I said above, just different situation.
Make rule so if Motion.Linear.X > 0 animate (moving right animation).
Same again with X but < 0 (animate left).
Then with Y. Same principle, up and down.
Sorry if it doesn't work. or if its not doing what you expected. Im new to this kinda thing =/. But I got it to stop animating when it touches the wall.