Something extra you can do, if you want. In this video I did not talk about obj_controller. Be sure the obj_controller object is in the room, otherwise it will not work.
obj_controller
Events:
Click on Add Events button at the bottom, select Mouse button, at bottom select Global Mouse Left Pressed. This will allow you to click any where in the room. Next grab a coded sheet from the Control tab and put it in the Actions:
Actions:
instance_create(mouse_x, mouse_y, obj_block); //This will allow //you to click any where in the room and it will produce obj_blocks.
obj_ball
Events:
Step
Actions:
if (keyboard_check(vk_right)) {
phy_position_x +=8;
}
if (keyboard_check(vk_left)) {
phy_position_x -=8;
}
if (keyboard_check(vk_up)) {
phy_position_y -=20;
}