3 ms·A shorter way to change the direction of the player is to use player.vx *= -1;by xomopinok 3y agoA shorter way to change the direction of the player is to use player.vx *= -1;