What is an easy way to tell if an object has gone of one side of the screen to pop back on the other?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Wrap-around?
if object.x > screenwidth then object. x = 0 - screen.width
@carlos, wouldn't that depend on the ReferencePosition of the object? In most cases it defaults to the centerReferencePoint which means that you might get just half of the sprite sticking out when it starts to disappear
cheers,
?:)
pseudo code - figure one can take it from there ;-)
c.
Hey,
This seems unnecessary now but it might still help, depending on how new you are to Corona -
http://techority.com/2010/12/08/how-to-wrap-your-iphone-apps-screen/
It's had some good feedback :)
Peach
views:1391 update:2011/9/29 19:21:19
热门文章
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
相关文章
I don't want to hurt anyone's feelings, but...
Need 10 tester for my cardgame android 2.2-2.3
Corona vs devices with non supported CPUs
Calcudate [FREE | iPhone]
Scaling physics objects
Kunundrum is live!
help with setting drag to an image?
Publishing/Building
New Article on how to make Pulsating Animation with CoronaSDK
Developer needed to port current iPhone game to Corona (Android). Paid job.
Need 10 tester for my cardgame android 2.2-2.3
Corona vs devices with non supported CPUs
Calcudate [FREE | iPhone]
Scaling physics objects
Kunundrum is live!
help with setting drag to an image?
Publishing/Building
New Article on how to make Pulsating Animation with CoronaSDK
Developer needed to port current iPhone game to Corona (Android). Paid job.
corona forums © 2003-2011