Simple animation

Can someone please post some code in relation to simple animation.

Basically I have multiple objects (multiple characters holding a bomb), and I would like to have a little flashing light on the bomb.

I’ve created 2 images. Both are the same, except one has a the bomb light red and the other image has the bomb light green.

I figured if I display image 1, and then every 5 seconds it displays image 2 for a second, I would have my characters with flashing bombs.

[import]uid: 63413 topic_id: 11456 reply_id: 311456[/import]

There is a sprite tutorial on http://techority.com/

Alternatively, check out the sprite API

Peach :slight_smile: [import]uid: 52491 topic_id: 11456 reply_id: 41674[/import]

Thanks the sample code was easy to follow. Implemented it fine. [import]uid: 63413 topic_id: 11456 reply_id: 41896[/import]

I’m very pleased to hear that! Best of luck with your app :slight_smile: [import]uid: 52491 topic_id: 11456 reply_id: 42082[/import]