T
Thiccypoo
Guest
I have movement fully coded except for jump, I fly when I hold the button down can someone tell me coding to stop that please
People are asking for code, it's in multiple parts.
I'll separate the sections with bullets
People are asking for code, it's in multiple parts.
I'll separate the sections with bullets
- /// Initiate Variable
if place_free(x,y+1) { gravity = 0.7 gravity_direction = 270 } else { gravity=0 gravity_direction = 270 };
if place_free(x-4,y)and keyboard_check(vk_left){x-=4};
if place_free(x+4,y)and keyboard_check(vk_right){x+=4} ;
if place_free(x,y-1) and keyboard_check(vk_up){vspeed=-10};
- /// Initialize Variable
grav = 0.7;
hsp = 0;
vsp = 0;
jumpspeed = 8;
movespeed = 7;
- /// Get Player's Input
key_right = keyboard_check (vk_right);
key_left = keyboard_check (vk_left);
key_up = keyboard_check (vk_up);