How do I make my player move

Question
Q: How do I make my player move?

Drag and drop
Let's say you wanted to move your player left, add a keyboard  to the player, now select the control tab and drag over If a position is collision free, this will check if where the player is about to move to is empty, if so, the player can move there. In x, place -4 and tick Relative (this means were checking 4 pixels to the left of the player).

Click on OK, select the move tab and drag over Jump to a given position, in the x place the same number as you did when checking for a collision (-4 in this case) and your player can now move left.

Do the same for a keyboard right event but just put 4, not -4, the same goes for up and down, experiment to see which is which.

Code
Ok, here's how do move the player using code, add a keyboard  event to the player object, and select the code tab and drag over Execute a piece of code, in the code type:

{ x -= ; }

X is horizontal and a minus number means 'move to the left'. Do the same for keyboard  event but put a plus number. Keyboard  is a Y number.

Or

Add a event and place the following code:

((vk_left)) x -= 6; ((vk_right)) x += 6; ((vk_up)) y -= 6; ((vk_down)) y += 6;