Which event listener handles screen loading?

Hi everyone,

I have some code where I am loading a static image and positioning it off screen, and I use transition.to to move it on screen on a certain event, like “touch”. I need to move it automagically onto the screen from below when the game loads, but this code:

Runtime:addEventListener("enterFrame", moveImage)

does not work. Which event listener can I use?

Thanks. [import]uid: 52069 topic_id: 14416 reply_id: 314416[/import]

Clearly your function is called moveImage, so you could add this and have it trigger immediately;

[lua]moveImage()[/lua]

That calls it just once when the game begins :slight_smile:

Peach [import]uid: 52491 topic_id: 14416 reply_id: 53345[/import]

Thanks Peach! Just what I needed :slight_smile: [import]uid: 52069 topic_id: 14416 reply_id: 53350[/import]