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:1250 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
相关文章
Cross App Promotion
Can you spot where I'm leaking?
(re)moving a display object from one group to another...
Performance fix part 2
Concurrent audio and video play
How do you code an onComplete command?
widget.newTableView() malfunctioning on Windows iPad simulator.
Image Data Manipulation?
Ordering by Z index?
[Error: A device build error occurred on server.]
Can you spot where I'm leaking?
(re)moving a display object from one group to another...
Performance fix part 2
Concurrent audio and video play
How do you code an onComplete command?
widget.newTableView() malfunctioning on Windows iPad simulator.
Image Data Manipulation?
Ordering by Z index?
[Error: A device build error occurred on server.]
corona forums © 2003-2011