LAST WEEK WE WERE MAKING SPRITES, or simple PIXELATED Graphics of our favorite CHARACTERS. Feel free to spend some time creating more SPRITES. As cool as the SPRITES that we painted on CELS are, we really Want to take those designs and create a small photoshop document, Generally 32 pixels wide, with limited color choices, as well as another SPRITE that is just will be our BARRIER for now… TIME TO MAKE OUR FIRSTINTERACTIVE SPRITE!
Gamemaker is a wonderful tool for starting out. First load the SPRITES and then create OBJECTS using those sprites that we will attach VARIABLES to. GAMEMAKER!
The Barrier is easy we just set that OBJECT to be a SOLID. Basically the other object will not be able to move over it at all. THE BARRIER
Our movable object will need to: -Move Left -Move Right -Jump LEFT and RIGHT
First we will make the object move LEFT and RIGHT. Remember we need to create a ROOM in order for it to move left and right in. Anyhow, we will be ADDING EVENTS which are all about the CONTROLLER. We can drag certain ACTIONS into the CONTROLLER once it is set. USER CONTROLS
ACTION for LEFT and RIGHT -IF a position is collision free -JUMP to a given position SCREEN SHOTS
ACTION for LEFT and RIGHT -IF a position is collision free -JUMP to a given position JUMP
The SPRITE we made will come into contact With the barrier, so we have to tell it what To do. COLLISIONS
The last few screens are about making the STEP action Function correctly. Try and thing out why the Commands are making our SPRITE do what we Ask it to! STEP & GRAVITY