A basic platformer starter project for Game Maker. I'm creating this as a starting point for myself and my kids, I'll get all the basics working for them and then we can all create our own games.
I'm adding many more comments than I would normally, these are to explain what each section of code does so my kids can easily see which parts of the code they may need to modify.
I'm only building the basics of each feature, if you decide to use this starter project you are going to need to tweak things here and there although there are variables to adjust the feel - check out player/create
Check out a game my Son is building using this starter kit here - it will gives you an idea on how to use the Project - you should put your stuff in a MyGame
of similar group and extend the base objects and inherit the create event to make changes to sprites.
- Grey - ground, solid objects
- Red & translucent - jump through platform
- Red & solid - platform
- Blue & translucent - moving jump through platform
- Blue & solid - moving solid platform (Dev in progress)
- Green & translucent - player activated jump through platform
- Green & solid - player activated platform (Dev in progress)
- Yellow and Black - Kill plane
Check the player/scripts/playerInput
script file, the controls should be what you expect though.
- Player moment - left, right, jump, ground dash & ground slide
- Gravity setting and terminal velocity setting
- Max jumps setting
- Jump through platforms
- Solid platforms
- Moving jump through platforms, move in x and/or y, set speed a target
- Player activated jump through platforms
- Player collision with ground
- Player collision with jump through platforms
- Player collision with moving jump through platforms
- Player can drop through jump through platforms with down + jump
- Player can drop through moving jump through platforms with down + jump
- Player single ground dash (gravity disabled during dash)
- Player single ground slide
- Ground slide and ground dash have a cooldown
- Player sprites for idle, running, jumping (up and down), dashing & slide
- Patrolling enemy base class - similar to moving platforms, set speed, target and start delay
showDebug
variables on multiple objects to show movements and targets etc.- Enemy damage and collision detection
- Kill plane
- Download Game Maker
- Download the Project
- Open the Project in Game Maker and press play
There are three know bugs currently - these will be fixed at some point
- You can slide into a solid object, well finish in one (fix in progress)
Player character is by https://zegley.itch.io/ - check his page for this asset here