I'm trying to get some cloud images to scroll across the screen and reset when they go off-screen, starting the whole animation again. I have four cloud images that I want to float gently across.
Any help?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Looping animation
@stephen,
check for the cloud if it has gone off the screen by using
where N is the cloud number that you want to check for
1 2 3 4 5 6 | cloudN:setReferencePoint(display.TopRightReferencePoint) local xPoint = cloudN.x if x<=0 then cloudN:setReferencePoint(display.TopLeftReferencePoint) cloudN.x = _W end |
views:1251 update:2011/10/22 17:28:16
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
Confetti Effect
┤【MINI THOR - Available Now】├
[Resolved] Help - is there a way to add multiple circle physics bodies to a display object?
Suddenly the boolean flag value is disappeared!?....Problem in reload bullet
issue with password in newTextField
Question about OpenFeint and GameCenter integration
Little bug in my timer
Issues when capturing the last frame...
Good job on Director 1.2!
Corona Week on the Indie Game Dev Podcast Show...
┤【MINI THOR - Available Now】├
[Resolved] Help - is there a way to add multiple circle physics bodies to a display object?
Suddenly the boolean flag value is disappeared!?....Problem in reload bullet
issue with password in newTextField
Question about OpenFeint and GameCenter integration
Little bug in my timer
Issues when capturing the last frame...
Good job on Director 1.2!
Corona Week on the Indie Game Dev Podcast Show...
corona forums © 2003-2011