Skip to content

Introduction to Game Development 2

Making Your Game: Step by Step

Making a game is like going on an epic adventure. You start with an idea, map out your journey, build and test your creation, and then share it with the world. Let’s break down this adventure into steps to help you make your very own game.

The Adventure Map: How to Make a Game

  1. Dreaming Up Your Game: This is where your game begins—in your imagination. Think about what kind of game you want to make. Is it a game where you explore space, solve mysteries, or compete against friends? Decide who will play your game and what fun adventures await them.

  2. Drawing Your Game Blueprint: Now it’s time to sketch out your game’s plan. What will your characters look like? What challenges will players face? This stage is like drawing a treasure map that guides you through making your game.

  3. Building Your Game: With your blueprint in hand, you start creating. Using Game Maker Studio, you’ll bring characters to life, make up rules for how they move and interact, and put together the different parts of your game. It’s like building a LEGO castle based on the instructions, but you get to decide how it all comes together.

  4. Testing Your Game: Every great inventor tests their creations, and game makers are no different. Play your game to find any tricky spots or glitches that need fixing. It’s like going through a maze you’ve made to ensure all the paths work.

  5. Sharing Your Game: The big moment! Once your game is ready and all polished up, you share it with friends, family, and maybe even the whole world. It’s like opening the doors to your own amusement park and inviting everyone in.

  6. Keeping Your Game Awesome: After your game is out there, listen to what players have to say. You might update your game with new levels, fix any bugs, or add cool new features based on their feedback. It’s like adding more rides to your amusement park based on what visitors love the most.

Creating the Rules and Challenges

Game mechanics are the rules and challenges in your game. They’re what make the game fun and exciting to play. When you’re making these rules, think about:

  • Starting Simple: Begin with easy rules. You can always add more as you go.
  • Making It Fun: Choose challenges that are fun to overcome. If you love solving puzzles, maybe your game has lots of puzzles to solve.
  • Keeping It Fair: Make sure no part of your game is too easy or too hard. You want everyone to have a good time playing.

Building Worlds to Explore

Your game levels are the worlds your players will explore. They’re the backdrop to all the action and adventures. When designing levels, remember:

  • A Good Flow: Start levels easy and make them gradually more challenging. It’s like a story that gets more exciting as you go.
  • Surprise and Delight: Add surprises or secret areas to discover. It makes exploring more fun.
  • Test, Test, Test: Have friends or family play your levels. Their feedback can help you make everything even better.

Wrapping Up

Making a game is a journey from the first spark of an idea to sharing your creation with others. By following these steps and putting your imagination to work, you can make a game that’s uniquely yours. Remember, making games is about having fun, being creative, and solving problems. So grab your adventurer’s hat, and let’s start creating!

Bringing Your Game to Life with Art and Sound

Creating a game isn’t just about coding and mechanics; it’s also about making your game look and sound amazing. This part of game making is like adding color and music to your adventure, making it more vibrant and exciting. Let’s explore how to add art and sound to your game in a way that’s fun and easy to understand.

Drawing and Animating Your Characters and World

Your game needs characters, objects, and places—these are called “sprites” in game design. Here’s how to make your game world come to life:

Making Sprites

Sprites can be anything from your game’s hero to the trees in the background. You can draw them directly in Game Maker Studio or create them in a drawing program and import them. Think of them as the actors in your play.

Making Sprites:

  1. Open Game Maker Studio 2 and load your project.
  2. In the Asset Browser on the left, right-click on Sprites and select Create Sprite.
  3. Give your sprite a name that describes what it is, like spr_Hero for your game’s hero.
  4. To add an image, click on Import and select an image file you’ve created or downloaded. You can also use the built-in Image Editor in Game Maker Studio 2 to draw your sprite directly in the software.
Create Sprite in Game Maker Image Editor

What Are Objects in Game Maker Studio?

In Game Maker Studio, objects are like the characters, enemies, and items in your game. They can do things, interact with other objects, and change how the game works. You can make them move, respond to actions, and even collide with other objects.

How to Create Objects in Game Maker Studio

Here’s how you can make your own objects in Game Maker Studio:

  1. First, open Game Maker Studio and either create a new project or open an existing one.
  2. On the right side, look for the “Objects” folder.
  3. Right-click on the “Objects” folder and select “Create Object.”
  4. Give your object a name, like obj_player or obj_enemy.
  5. Choose a picture (sprite) for your object by clicking the “Sprite” dropdown and selecting one.

By following these steps, you can create and customize objects in Game Maker Studio to build your game.

Coloring Your Game with Backgrounds and Layers

Backgrounds are the scenes or environments where your game takes place. They set the mood and help tell your game’s story.

Designing Backgrounds

A background might be a spooky forest, a busy city, or a mysterious alien planet. You can draw your background in Game Maker Studio or any art program. Remember, your background should be interesting but not distract from the main action of your game.

Designing Backgrounds:

  1. Create or find a large image that fits the theme of your game level.
  2. In the Asset Browser, right-click on Backgrounds and choose Create Background.
  3. Import your background image by clicking on Import in the background properties.

Using Layers

Think of layers like a stack of transparent papers. You can have one layer for your background, another for your characters, and another for objects like coins or power-ups. By organizing your game with layers, you can decide what appears in front of or behind something else.

Using Layers:

  1. Open the Room Editor by double-clicking on a room in your Asset Browser.
  2. In the Room Editor, you’ll see a panel called Layers. Here, you can add, delete, and rearrange layers.
  3. To add a new layer, click the + button at the bottom of the Layers panel. You can choose from different types of layers, like Instances for objects or Backgrounds for your background images.
  4. Drag layers up or down in the list to change their order. Things in higher layers appear in front of things in lower layers.

Making Your Game Sound Awesome

Sound effects and music are super important. They make your game more fun to play by adding atmosphere and feedback to the player’s actions.

  • Adding Sound Effects: Sound effects help your game feel alive. You can use them for actions like jumping, grabbing a coin, or losing a life. Game Maker Studio lets you add sound effects easily. You can find free sounds online or even record your own!
  1. Find or create sound effects for actions in your game, like jumping or collecting items. There are many free resources online where you can download game sounds.
  2. In Game Maker Studio 2, right-click on Sounds in the Asset Browser and choose Create Sound.
  3. Name your sound something descriptive, like snd_Jump.
  4. Click Import in the sound properties and select your sound file.
  5. To play your sound in the game, you’ll use the audio_play_sound function in your object’s events. For example, to play the jump sound when the player jumps, you might add it to the Key Press Event for the spacebar.
  • Choosing Music: Music sets the overall mood of your game. Is your game fast and exciting? Maybe you’ll want upbeat music. Is it a mystery game? Maybe something spooky or mysterious. You can find lots of free music online that you can use in your game, just make sure it’s okay to use it for your project.

Adding art and sound to your game is like decorating a cake or putting the finishing touches on a school project—it makes everything better and more complete. Experiment with different looks and sounds until you find what works best for your game. And most importantly, have fun with it! Your game is your masterpiece, so enjoy the process of bringing it to life.

Adding Assets to a Room: Making Your Game’s World

After creating your sprites, backgrounds, and sounds, the next exciting step is placing these assets into a room—your game’s stage. This process is like setting up a theater stage for a play; every character, prop, and backdrop needs to be just right. Game Maker Studio 2 makes this easy and fun. Let’s walk through how to bring your game’s world to life by adding assets to a room.

Setting the Stage: Adding Backgrounds to a Room

  1. Open the Room Editor by double-clicking on a room in your Asset Browser. If you don’t have a room yet, right-click on Rooms in the Asset Browser and select Create Room.
  2. With your room open, look for the Layers panel on the right side of the screen. Here, you’ll see a layer called Backgrounds.
    • If it’s not there, you can add a new layer by clicking the + button and selecting Background Layer.
  3. Click on the Backgrounds layer to select it. In the layer properties that appear, you’ll see an option to choose a background. Click the dropdown menu and select the background you want to use for this room.
  4. You can adjust the background’s position, scale, and whether it repeats (tiles) across the room using the options in the layer properties.

Placing Your Actors: Adding Objects to a Room

  1. Objects in Game Maker Studio 2 are things like your player character, enemies, or items. Before you can add an object to a room, you need to have created the object in the Asset Browser. If you haven’t done this yet, right-click on Objects in the Asset Browser, select Create Object, and assign it a sprite.
  2. In the Room Editor, find the Layers panel again. This time, you’ll want to add objects to an Instances layer. If there isn’t one, click the + button and choose Instance Layer.
  3. With the Instances layer selected, you can add objects to your room. Simply click the Object tool (it looks like a chess piece) in the toolbar at the top of the Room Editor, then click in the room where you want to place an object.
  4. In the window that pops up, select the object you want to place. You can continue clicking in the room to place more instances of the selected object or choose a different object to add.

Setting the Scene: Adjusting Room Properties

  • Room Size: Adjusting the size of your room can help create the perfect space for your game’s levels. In the Room Settings panel, you can set the room’s width and height to fit your game’s design.
  • Room Order: If your game has multiple rooms (levels or stages), the order in which they appear can be crucial to gameplay. You can drag and rearrange rooms in the Asset Browser to set the order they will appear in your game.

Bringing It to Life: Adding Sound

While you can’t directly place sounds in a room like you can with objects and backgrounds, you can trigger sounds to play based on events happening in the room. For example, you might play a background music track when the room starts or a sound effect when the player interacts with an object.

  1. Open the object where you want to add sound, such as your player character.
  2. Go to the Events tab and add or select an event, like Create for background music or Collision for an interaction sound effect.
  3. Use the audio_play_sound function in the code editor for the event to trigger your sound at the right moment.

Conclusion

By adding backgrounds, objects, and sounds to your rooms, you start turning your game from a collection of assets into an interactive experience. Think of each room as a chapter in your game’s story, with its own challenges, characters, and atmosphere. Experiment with different layouts, designs, and soundscapes to find what best brings your game to life. Game Maker Studio 2 gives you the tools; all you need to do is unleash your creativity!