How can i make an image move around by itself?

im trying to make some images move around the screen randomly, in my game i have these bugs and i want them to run around the screen, is there anyway i can do that? thanks. [import]uid: 10827 topic_id: 4537 reply_id: 304537[/import]

Set a listener for enterFrame and move the bug in that. Use the command math.random() for it’s movement direction.

In the code I posted in the “find the parent” thread I include an entity that jitters around randomly; this isn’t quite what you want but it should give you a start. [import]uid: 12108 topic_id: 4537 reply_id: 14291[/import]