Hello, maybe you could try using timers in order to control the refresh rate of a function that moves the player left or right by one unit. Here’s a sample code. Hope it helps