Pacman Sprites For Game Maker

Posted on by

Pac-Man Image from arcade-museum.com Prerequisites for the tutorial • Have completed • Be comfortable with using a mouse and a keyboard • An interest in game development • A computer equipped with Mac OS X or Windows XP/Vista/7 • Length of the tutorial This tutorial should take 5 minutes to complete Objectives of the tutorial After completing this tutorial you should be able to: • Manage collisions • Collect objects • Destroy Objects Acquiring the assets for your game • Download the assets to create your game. • Save the zip file on your desktop • Unzip the folder, you should obtain a folder called ‘pacman’ that includes images Adding walls to the room At this stage, we only have Pac-Man moving around the room, and we may need to ad more objects, including walls and dots to collect. Let’s add two sprites, one for the wall and one for the dots to be collected: • From the top menu, select: Resources >Create Sprite • A new window should appear • In the section labelled “Name”, type “ wall_spr” • Click on the button labelled “ Load Sprite” • In the new window labelled “Open Existing File”, click on the folder where you have saved the sprites downloaded previously, and display its content(e.g., Desktop). • Open the folder labelled “ pacman” that you have created previously (from the zip file that was downloaded). Able Lion King Game there.

Make Pacman Game

• Select the image labelled “ wall”, and click on the button labelled “Open”. This should display a preview of the animated image on the right hand side of the sprite window in Game Maker. • Click the button labelled “OK” • Repeat these steps to create a sprite called dot_spr based on the sprite dot.gif At this stage, you should have two additional sprites ready to be used for new objects as illustrated on the next Figure. New sprites for walls and dots We will now create a corresponding object.

Pacman sprite for game maker. It for promt you maker Select polyline: which is asking you to select the object you wish to edit, pacman sprite for. Making Games with Game Maker – Movement and Rooms. Demonstration using the Pacman sprites that ship with Game Maker. Paths •In many games, there are one or more.

Creating new objects: • From the top menu, select: Resources >Create Object • A new window should appear. • In the section labelled “Name”, type “wall_obj” • Leave the box labelled “Solid” empty (we will use this feature at a later stage for AI) • In the section labelled “Sprite”, click on the text “ and select “ wall_spr” from the list. • Click on the button labelled “OK”. Room with walls Managing collision between Pac-Man and the walls Once you have created the walls, it is now time to manage collisions and this will be done using events: • Double-click on the Pac-Man object on the left-hand side of the screen. This should display its properties • Click on the button labelled “Add event” • Click on the event “Collision” and select the object “ wall_obj” to specify that you want to specify actions when the pac_man_obj object collides with a wall. This should add a “wall_obj” collision event in the event window • Click on the tab labelled “ Move” • From the “ Move” section of the window, drag the top left icon (red star) and drop it in the “Action” section; this should open a window called “ Move fixed” • In the new window, click on the middle square and set the speed to “0”. By doing this, we specify that the object should not move (or stop moving) as illustrated on the next Figure.