Pages

Friday, 10 June 2016

Gamemaker Basics

(Helpful tips)
Name stuff with a convention, eg obj_car to make code easier.
Speed = Target Frame rate (important due to step events (do this move 60 times a second).


There a 4 main aspects to gamemaker.


  • Rooms - Screens/levels of your game  (e.g menu or levels), Containers for objects and backgrounds.
  1. Right click the room button on the menu on the right
  2. Name the room (e.g rm_skyroom)
  3. Adjust size
  4. Set speed
  • Backgrounds (static image which doesn't interact) e.g clouds)
  1. Right click on background and name (bg_)
  2. Goto load background and select image.
  3. Hit OK.
  4. Goto room and goto background tab - tick visible when room starts
  5. Pick image (above tile co ords)
  6. Set speed to make background scroll
  • Sprites (Visual element for animatited/imteractive objects)

  1. Right click on sprite to create new sprite
  2. Name (spr_)
  3. Goto edit sprite (where you edit the sprites animation set of frames)
  4. Create sprite
  5. (add more frames using page+ simbol)
  6. Set speed of animation
  7. Change origin to select point of rotation (center normally)
  • Objects (Containers for all interactivity/controls/characters for your game) (Very important).
  1. Right click on object to create object
  2. Name (obj_)
  3. Set sprite
  4. Click ok
  5. Goto room and goto objects tab
  6. Right click the add objects are
  7. Select object
  8. Then click on room to add objects
  9. (Change properties (e.g scale) if required)
  10. Add interactivity to objects using the event and action window on object panel
  11. Events = if Actions = then (e.g if space is pressed then move obj_smiley 2 on the x