Title: Challenge 1 - Jumping Off a Platform
Course: Game Design and Development I

Game Maker Challenge

A character jumps up off a platform, and return under the influence of gravity – you cannot jump from midair

Hints:

a) Make characters, floor and platforms solid

b) Gravity: Set the gravity to 1 when the character is moving down and set it to zero when it is on a platform (otherwise it won't be able to move left and right)

Step Event:

if expression place_empty(x,y+1) is true

set the gravity to 1 in direction 270

else

set the gravity to 0 in direction 0

c) When character hits platform make vertical speed = 0

d) Jumping: <Up> Key set vertical speed negative for up

To prevent jumping from mid air run a test to check whether the character is standing on a solid platform

Key Press Event for <Up> Key:

if relative position (0,1) is not collision free for Only solid objects

set the vertical speed to -15