I have a player that move left and right. it is controlled by - always set x position to x mouse.
1.how can i get the direction of the player.
2. how can i get the speed of the player.
( i can not use the 8 direction movement, because i can not control it without buttons )

