S
Stefqnutz
Guest
Hello I wrote this code a while ago and it worked fine. Now it seems when I used it, it didnt worked
can someone help me?
here is the code btw
// Press <CTRL> to crouch.
if (keyboard_check(vk_control)) {
max_spd = crouch_max_spd;
if (height > crouch_height) then height -= 1;
} else {
if (!place_meeting_ext(x, y, z + walk_height, o_wall)) {
max_spd = walk_max_spd;
if (height < walk_height) then height += 1;
}
}
can someone help me?
here is the code btw
// Press <CTRL> to crouch.
if (keyboard_check(vk_control)) {
max_spd = crouch_max_spd;
if (height > crouch_height) then height -= 1;
} else {
if (!place_meeting_ext(x, y, z + walk_height, o_wall)) {
max_spd = walk_max_spd;
if (height < walk_height) then height += 1;
}
}