A simple way to perform animation, using an "enterFrame" listener to trigger updates.
1 2 3 4 5 6 7 8 | local background = display.newImage( "world.png" ) local myText = display.newText( "Hello, World!", 0, 0, native.systemFont, 40 ) myText.x = display.contentWidth / 2 myText.y = display.contentWidth / 4 myText:setTextColor( 255,110,110 ) |
| Attachment | Size |
|---|---|
| HelloWorld.zip | 39.13 KB |