Legacy GM Problem with crouching in my 3D Game

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;
}
}
 
All you said is that nothing happens; that gives us exactly zero to work with. Is your code set up to work with your projection properly? Is this in a Step event? Do you have anything overriding this block of code?
 
Top