![game maker studio tutorial game maker studio tutorial](https://i.ytimg.com/vi/toxbG3j4kpg/maxresdefault.jpg)
Click "Add Event", select "Step" and then "Step" again.If he's on the ground, we'll take gravity away to prevent him from sinking in. To make this work, we'll check Qbert's feet on every frame. We need to add gravity to our world, but we only want this to affect Qbert if his feet are not on the ground. If you play your game now, you'll notice that Qbert goes straight into the air and never comes down - oh no! This time, be sure to use positive 4 in the X and mark it as "Relative".Now select the Keyboard event, and add the "Check Empty" action as well.If your "Check Empty" action is not at the top of the list, drag it up so that it is.Use the same values which we used in the "Jump to Position" action. This action allows us to make sure our target destination is empty. Add the "Check Empty" action to the top of the actions list.Go to the "Control" tab in the actions toolbar on the right side of the window. Now we need to add a conditional statement.We told Qbert to move to the left and right, but we never told him he couldn't walk through walls! Notice anything weird while playing the game? Once you're done, let's try out your game by pressing the button at the top left of GameMaker Studio.Add the "Jump to Position" action to this event. This time, we want Qbert to move to the RIGHT from his CURRENT position.Now add another event for the Keyboard key.We want Qbert to move to the LEFT from his CURRENT position, so we'll put: To add this action, you can either drag-and-drop it into the actions list, or simpley right-click on it.Find the "Jump to Position" action on the "Move" tab. The right side of the window lists all the actions we can do.What do we want to happen when the player presses left? We want Qbert to move to the left!.Click the "Add Event" button at the bottom of this window.Double click the Qbert object under the Objects folder.We'll do this by adding keyboard events to the Qbert object. Let's give our player control over Qbert. Be sure to save your work so far by clicking the button!Īlright, we've created our first level.When you're done, click the at the top left of the room window.He should start far from the winBlock, on top of an okBlock. Change the current object to Qbert which you created earlier.Change the current object to the loseBlock which you created earlier.Don't make it too easy, but remember, this is just the first level. Change the current object to the winBlock which you created earlier.Create platforms using okBlocks for the player to jump on.You can re-arrange blocks by clicking and dragging them. Fill the entire border of the room with okBlocks by clicking in the room.
![game maker studio tutorial game maker studio tutorial](https://i.ytimg.com/vi/-jDuXnQOtlo/sddefault.jpg)
Change the current object to the okBlock which you created earlier.Right-click on the "Rooms" folder, and select "Create Room".Levels can be implemented in GameMaker Studio by creating a "Room".