Practice movement script example
Don't use individual button press functions for movement, its awful and unnecessarily clunky. Make it one step script with a set of if statements. Script applied to player is in the long description. (Added room functionality, collisions, and sprint)

Description

Object -> Step

///Movement

if keyboard_check(vk_up) = true

{

y += -5;

}

if keyboard_check(vk_down) = true

{

y += 5;

}

if keyboard_check(vk_left) = true

{

x += -5;

}

if keyboard_check(vk_right) = true

{

x += 5;

}

Stickers received: 0
Show appreciation to game devs to let them know you like their games!

About

DeveloperjoBDCMT studio
Number of plays75
Release date25 Jun, 2023
Last updated26 Jun, 2023
Game engineGameMaker
Maturity ratingAll ages

Contact studio