[Solved] Make sprite move between 3 points

Hi everyone! I’m trying to make a simple “Infinite Runner” type of game, and I wanted to make the player move between 3 points, one on the Left, one on the Middle, and one to the Right. While my player can move from Left to Right, it for some reason can only stay in the middle if I press both the “left” and “right” keys. I have tried a few things, but nothing seems to fix it. Following is an image of my “Events”:

Any help would be appreciated!

Think about what’s happening - you’re on the right, you press the left key. The position changes to middle. Immediately in the next frame you’re now in the middle, the left key is still pressed. So the position changes to left.

You should check there are no tweens playing, or they have finished playing, before moving the player. You also should remove a tween once it’s finished playing.

Personally, I’d do something like :

Thanks! It worked perfectly.