A
Abobey
Guest
Hi guys so I don't know if I need to learn more about what each function and variables do in GML before trying to create my own code but I'm trying to create a wall jump mechanism I tried this code but it does not work
if (key_jump) && (place_meeting(x+1,y,oWall)) && place_meeting(x-1,y,oWall) {
jumps = 1;
}
i figured it out thanks to @FrostyCat heres the code if you want to use it
if (place_meeting(x+1,y,oWall)) - (place_meeting(x-1,y,oWall)) and (key_jump)
{
vsp = -7.5;
}
if (key_jump) && (place_meeting(x+1,y,oWall)) && place_meeting(x-1,y,oWall) {
jumps = 1;
}
i figured it out thanks to @FrostyCat heres the code if you want to use it
if (place_meeting(x+1,y,oWall)) - (place_meeting(x-1,y,oWall)) and (key_jump)
{
vsp = -7.5;
}
Last edited by a moderator: