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.
- Right click the room button on the menu on the right
- Name the room (e.g rm_skyroom)
- Adjust size
- Set speed
- Backgrounds (static image which doesn't interact) e.g clouds)
- Right click on background and name (bg_)
- Goto load background and select image.
- Hit OK.
- Goto room and goto background tab - tick visible when room starts
- Pick image (above tile co ords)
- Set speed to make background scroll
- Sprites (Visual element for animatited/imteractive objects)
- Right click on sprite to create new sprite
- Name (spr_)
- Goto edit sprite (where you edit the sprites animation set of frames)
- Create sprite
- (add more frames using page+ simbol)
- Set speed of animation
- Change origin to select point of rotation (center normally)
- Objects (Containers for all interactivity/controls/characters for your game) (Very important).
- Right click on object to create object
- Name (obj_)
- Set sprite
- Click ok
- Goto room and goto objects tab
- Right click the add objects are
- Select object
- Then click on room to add objects
- (Change properties (e.g scale) if required)
- Add interactivity to objects using the event and action window on object panel
- Events = if Actions = then (e.g if space is pressed then move obj_smiley 2 on the x
No comments:
Post a Comment