Whack-A-Mole

1 Setting Up

Before starting to make this game, make sure that you have copied all of the sprites and sounds from the Game Resources page.

Create 3 sprites using the graphics provided. Call the sprites, spr_mole, spr_barrel_front and spr_barrel_back, .



We need to take care when creating the objects. When Game Maker draws objects on the screen it does so in order of their depth. The higher the depth, the earlier it is drawn. We want our objects to be drawn on the screen in the following order,

The back of the barrel will have a depth of 2, the mole will have a depth of 1 and the front of the barrel will have a depth of 0. Screenshots of each of the 3 object windows are shown below,