I am working on an app where I have a little robot chasing a flower on a grid. When the robot catches up to the flower the player gets a point, the flower disappears and reappears somewhere else on the grid. My problem is that sometimes the flower reappears in the same location it disappeared from. (I’m using math.random for the coordinates). Can anyone point me in the direction of making sure the flower can only reappear at least 50 pixels away from it’s location when it disappeared?
Thanks [import]uid: 48122 topic_id: 19942 reply_id: 319942[/import]