Struggling with touch movement

just started with phaser trying to get a mouse over to left or right to move a character

here my code:

<!doctype html>

Making your first Phaser 3 Game - Part 10 body { margin: 0; }

need to change the * code so that when i move mouse over it will move left and right

Can anyone help?

Hi @mjones, I think something happened when you tried to copy your code here, because what you posted is not going to help anyone find a solution or even understand the exact problem you’re facing.