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.
Step-by-Step Guide
-
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. -
Step 2: Create the following: A sprite called spr_paddle.
-
Step 3: Create an object for each with the same names except obj_ instead of spr_.
-
Step 4: For obj_paddle.
-
Step 5: For obj_wall.
-
Step 6: For obj_ball.
-
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
Jack Ford
Specializes in breaking down complex creative arts topics into simple steps.
Rate This Guide
How helpful was this guide? Click to rate: