coding a door opening on an existing background

Is this the main/best approach to code a door opening (after being touched), in a level for which there is an image background. This background image has a closed door. Approach I’m assuming:

* create a spritesheet with images of the door opening
* use GIF images with transparency for the sprite images because as the door opens more of the background may need to be shown…
* use MovieClip to show & play the door opening once the user clicks

Or is there a better approach?

[import]uid: 140210 topic_id: 25044 reply_id: 325044[/import]

You can’t use GIFs with mobile devices in development.

You could make it a sliding door and have the rest of the room on a higher Z axis then put the door behind it and just move it right/left slowly :slight_smile: [import]uid: 10389 topic_id: 25044 reply_id: 101715[/import]

oh, I mean PNG (not GIF) re image with transparency (e.g. consider door with rounded top part)

take your point re sliding door (nice) - although in this case I was after a opening one…

[import]uid: 140210 topic_id: 25044 reply_id: 101717[/import]

I don’t know anyone using MovieClips any more. Just do a spritesheet :slight_smile: [import]uid: 10389 topic_id: 25044 reply_id: 101720[/import]