Saltearse al contenido

🎨 Drawing Sprites: What Your Game Looks Like

Sprites are the pictures that show what your game characters and objects look like. They can be anything—Pac-Man, ghosts, coins, or even pizza slices! Sprites are the art of your game. In Game Maker Studio, you use a tool called the Sprite Editor to draw these pictures.

To begin, you find the Sprites folder on the left side of your screen. When you right-click and choose “Create Sprite,” a blank picture appears, ready for you to fill with your imagination. It’s helpful to name your sprite something clear, like spr_pacman for Pac-Man, so you know what it is.

Once your sprite is created, click “Edit Image” to open the Sprite Editor. This is where the fun begins—you get to draw!

Inside the Sprite Editor, you’ll find several helpful tools. The Paint Tool is like a digital crayon or paintbrush. You can pick a color and draw freely. The Eraser Tool lets you fix mistakes by removing parts of your drawing. The Line Tool is great for drawing straight lines—perfect for mouths or maze walls! There’s also a Rectangle Tool that helps you make squares and rectangles, either as outlines or filled shapes.

Let’s try drawing Pac-Man. You start by creating a small canvas—just 32x32 pixels, which is a good size. Use the Paint Tool to draw a yellow circle. Then, use the Line Tool to make a little triangle cut out, like a mouth. Now Pac-Man looks like he’s always chomping!

Next, you can draw the ghosts. Create four new sprites and name them spr_ghost_red, spr_ghost_pink, spr_ghost_blue, and spr_ghost_orange. Each ghost gets a different color, and they all have a round top with a wavy bottom. Don’t forget the eyes—white for the eyeballs and blue or black for the pupils.

We also need power circles, which Pac-Man collects for special powers. Create a sprite named spr_powercircle and draw a small white circle on a tiny canvas, like 16x16 pixels.

Finally, you’ll need a sprite for your maze. Make a new one called spr_maze with a bigger canvas, like 256x256 pixels. Use the Line Tool to draw walls and paths. Make sure there’s enough room for Pac-Man and the ghosts to move around.

When drawing your sprites, remember a few tips: use the same colors across your game so everything matches, keep your drawings simple so they’re easy to see, and don’t be afraid to try different things—mistakes are part of learning!


🧱 Creating Objects: Making Things Come Alive

Now that you’ve drawn your characters and items, it’s time to turn them into objects. Objects are the parts of your game that do things. They move, chase, bounce, and collect. You can think of objects as the brains that use the pictures (sprites) to look the way they do.

To create an object, go to the Objects folder on the left, right-click, and choose “Create Object.” You’ll see a screen where you can give your object a name and connect it to a sprite.

For example, to create Pac-Man, you name the object obj_pacman and choose the sprite spr_pacman. That way, the object looks like Pac-Man when you place it in the game.

After picking the sprite, there’s one more important step: setting the collision mask. This tells the game how to detect when objects bump into each other. Choose “Precise (slow)” so the game knows exactly when Pac-Man hits a wall or a ghost.

Now you can do the same for the ghosts. Create obj_ghost_red, obj_ghost_pink, obj_ghost_blue, and obj_ghost_orange. Pick the matching sprite for each and set the collision mask. Then create objects for the power circles and the maze, like obj_powercircle and obj_maze.

Just like with sprites, it helps to name your objects clearly. This keeps your game neat and easy to understand!


🧩 Designing Rooms: Where Your Game Happens

Now let’s talk about rooms. Rooms are where your game takes place. They’re like levels, playgrounds, or stages. A room holds your objects—Pac-Man, ghosts, power circles, and maze pieces—and lets everything come together to form a game.

To make a room, find the Rooms folder, right-click, and choose “Create Room.” Name your room something like rm_level1, so you know it’s the first level.

Once the room is made, double-click it to open the Room Editor. You’ll see a grid where you can place your objects. You use the Instances Layer to add the objects you created.

Click and drag obj_pacman into the room and place him where you want the game to start. Then add the ghosts, power circles, and the maze. Spread the power circles around the maze paths and place the ghosts in different corners so the game feels exciting!

Make sure there’s enough space in the maze for Pac-Man to move around. If the maze paths are too skinny, it might be hard to play.

After placing everything, your level is ready to go! All the pieces—sprites, objects, and rooms—are working together now.


🕹 Running and Testing the Game

Now that your room is ready, it’s time to see your game in action! At the top of Game Maker Studio, there’s a green Play button. Click it to run your game. The program will build your game into something you can actually play.

Try moving Pac-Man around the maze. See how he looks and feels. Are the power circles in the right place? Are the ghosts where you want them? If something doesn’t feel right, don’t worry! You can go back and move things around. That’s part of the process.

Great game makers always test and fix their games. It’s like doing a puzzle and making sure every piece fits perfectly.

What’s Next?

You’ve now learned how to draw the pictures for your game, turn them into moving characters, and place them inside a game world. That’s a huge step! In the next chapter, we’ll learn how to make your objects move, react, and respond to events—like when Pac-Man eats a power circle or gets chased by a ghost. This is where your game really comes to life!

Keep practicing, keep drawing, and keep building your game world. You’re becoming a real game developer, one piece at a time!

Vocabulary Review

WordWhat It Means
Game MakerA tool that helps you create your own video games. It’s like a digital workshop!
SpritesPictures or characters that you see in a game, like a player or coin.
ObjectsThings in a game that can do stuff, like move, bounce, or disappear.
EventsActions that happen, like pressing a button or touching a wall.
RoomsThe different places where your game takes place, like levels or maps.