How could i make a movement when you press left or right you change the direction,but when you press Up you go in the selected direction simalar to the built in Race car movement.
I'm not sure exactly what kind of movement you want as an end result. It would be easier if you described it more in-depth.
If all you want is a 2 directional movement (left or right), where up travels forwards and left/right change directions, you can simply do this:
+Upon Pressing Left
=Set Flag 1 OFF;
+Upon Pressing Right
=Set Flag 1 ON;
+Repeat Upon Pressing Up
+Flag 1 is OFF
=Set Position of PLAYER to PosX(Player) - 1;
+Repeat Upon Pressing Up
+Flag 1 is ON
=Set Position of PLAYER to PosX(Player) + 1;
Alternatively, if it is more to your tastes, you can alter the "Upon Hitting Left/right" Code to be "Toggle Flag 1" instead of "Set Flag 1", which will make it more like the race car movement.
I thaught he wanted to do a sort of shoot-platformer game. for example the player have a gun, he can move it up and down (to target), but the gun direction have to be reversed according to the direction of the player (facing to right or facing to left)