Box Launch

About The Project

This game is a side scrolling puzzle game that was made in the Gamemaker engine. The core mechanic is the player being able to pick up and throw boxes, which will allow them to solve movement based puzzles.





Managing the Box

The box has two states, one being its default state where it has gravity and other basic physics, and the other being a held state where the boxes position is dictated by the player.

The boxes state is changed by the player hitting the “Z” key when the player character is close enough to the box, which makes the player pick the box up. The function that accomplishes this is to the right.

Player Movement/ Collision

Movement for the player is contained within the function, and gravity is applied to the player. The player is also able to jump, but only after colliding with something below the player

Universal Collision Script

This is the collision script. First it looks at all four basic directions, and checks if the player will no longer be colliding with an object if moved in that direction. If it can’t, then it looks at the diagonals. If those are unable to leave the player without collision, then the distance at what it is checking increases by one. It does this until the player is moved out of the collided object, or reaches the cap of 1000 so that a memory leak is not created.

X