Wrap-around?

What is an easy way to tell if an object has gone of one side of the screen to pop back on the other? [import]uid: 39533 topic_id: 11087 reply_id: 311087[/import]

if object.x > screenwidth then object. x = 0 - screen.width

[import]uid: 24 topic_id: 11087 reply_id: 40282[/import]

@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,
?:slight_smile: [import]uid: 3826 topic_id: 11087 reply_id: 40328[/import]

pseudo code - figure one can take it from there :wink:

c. [import]uid: 24 topic_id: 11087 reply_id: 40330[/import]

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 :slight_smile:

Peach [import]uid: 52491 topic_id: 11087 reply_id: 40353[/import]