my game have sprite with sine behavior, sine is moving this sprite smoothly from left to right
every x second this sprite spawn coin
But coins should always swap his position every 32pixels after create
Develop games in your browser. Powerful, performant & highly capable.
What do you mean ? I don't understand you. Where do you want to move your coin ? Swap it with what ? The sprite ? What happens when there is multiple coins, do they all swap wit the sprite ?