Hi guys
What’s the best to get an enemy to pace back and forth, possibly up to a certain co-ordinate, and then back again?
Any pointers would be great! [import]uid: 40538 topic_id: 8404 reply_id: 308404[/import]
Hi guys
What’s the best to get an enemy to pace back and forth, possibly up to a certain co-ordinate, and then back again?
Any pointers would be great! [import]uid: 40538 topic_id: 8404 reply_id: 308404[/import]
best way*
(Won’t let me edit original post) [import]uid: 40538 topic_id: 8404 reply_id: 30066[/import]
The two main ways would be using transitions and moving the enemy a little bit each frame in an enterFrame listener. Which method is best depends on what exactly your situation is, but I would tend to recommend the latter because it’s more flexible. [import]uid: 12108 topic_id: 8404 reply_id: 30071[/import]
I’m thinking about adding animation aswell, but I don’t think transitions will allow for such flexibility as you said.
I’ve looked up some info re: animations on the App programming guide but it doesn’t seem to have info on how to handle objects which animate and move.
Any chance of some guidance on this?
Thanks [import]uid: 40538 topic_id: 8404 reply_id: 30191[/import]