How to Make a Breakout Game with Game Maker

Open Game Maker., Create the following: A sprite called spr_paddle., Create an object for each with the same names except obj_ instead of spr_., For obj_paddle., For obj_wall., For obj_ball., For obj_wall_break.

7 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open Game Maker.

    A sprite called spr_ball.

    A sprite called spr_wall.

    A sprite called spr_wall_break with a different color than the normal wall. , e.g. obj_paddle for spr_paddle. , Left key pressed:
    Move left with a speed of
    5.

    Right key pressed:
    Move right with a speed of
    5.

    Any key released:
    Move nowhere with a speed of
    0.

    Collision with wall: move nowhere with a speed of
    0.

    Check the solid box. , Check the solid box. , In the create event:
    Move up, top right and top left with a speed of
    4.

    In collision with wall:
    Bounce off solid objects.

    Collision with wall break:
    Bounce off solid objects.

    Set the score to 10 and check the relative box.

    Destroy other.

    Collision with bat:
    Bounce off solid objects. , Collision with ball:
    Destroy self.
  2. Step 2: Create the following: A sprite called spr_paddle.

  3. Step 3: Create an object for each with the same names except obj_ instead of spr_.

  4. Step 4: For obj_paddle.

  5. Step 5: For obj_wall.

  6. Step 6: For obj_ball.

  7. Step 7: For obj_wall_break.

Detailed Guide

A sprite called spr_ball.

A sprite called spr_wall.

A sprite called spr_wall_break with a different color than the normal wall. , e.g. obj_paddle for spr_paddle. , Left key pressed:
Move left with a speed of
5.

Right key pressed:
Move right with a speed of
5.

Any key released:
Move nowhere with a speed of
0.

Collision with wall: move nowhere with a speed of
0.

Check the solid box. , Check the solid box. , In the create event:
Move up, top right and top left with a speed of
4.

In collision with wall:
Bounce off solid objects.

Collision with wall break:
Bounce off solid objects.

Set the score to 10 and check the relative box.

Destroy other.

Collision with bat:
Bounce off solid objects. , Collision with ball:
Destroy self.

About the Author

J

Jack Ford

Specializes in breaking down complex creative arts topics into simple steps.

42 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: