I have an object (an enemy) that I want to have it jump up when the player is above it in a sidescroling game.
But because it’s not a collision, I can’t think of the logic of how to solve this.
I know I could loop through every enemy in the game each game loop, and compare positions (if player.x ~= enemy.x ) but that doesn’t sound very efficient.
Any thoughts? Is there something native in Corona I’m not remembering? My Googling has turned up mostly GPS proximity stuff.