Hello. I have been trying to learn Corona for a little while now.
I’m trying to make a game where a player push a small ball back and forth. When the ball fall past the right or left edge of the screen I want it to reappear at the opposite edge.
I’ve been trying to find an event that can detect when a ball fall past the edge, but I haven’t found any. I think I could just put up an invisible object at the edge, set it to a sensor and have it detect it, but I was wondering if there was a specific event for it. Also I am unsure how you would render it. I don’t want to just change the position of the ball, rather when half the ball is past the right edge, the other half appears on the left.
Is there a good way to do this in Corona? I’ve been trying to look trough the documentation but I haven’t found anything.