When I press the right or left arrow I want the sprite to go to the closest of the 4 x positions given. Lets say player.x = 360 and the 4 positions are (100,120,150,300) I want player.x to move to 300. I already have a expression that rounds it to the closest factor of 80 which is: round(Player.X /80)*80 but when I wrap the sprite it does not round.
Thankyou and I hope you can help