|
Post by blazingbull on Dec 11, 2016 5:32:59 GMT -6
Hopefully i'm posting this in the right place. Firstly thanks for the tutorials they're great, I was wondering with the platform Tutorial I'm up to date but I want him to be able to double jump even when coming off of a wall on the side so his jump count is still 2. I tried to work this out for myself but to no avail I will keep trying but if you see what im doing wrong help would be much appreciated thanks.
These are the ways I tried changing it (Didn't work) These changes did not negatively do anything either just changed nothing as far as I'm aware.
//wall jumping
if (jumpKey) && (place_meeting(x+1,y,con_wall) || place_meeting(x-1,y,con_wall)) {
vsp = -jumpspeed;
dblJumpCount = 2;
//dblJumping
if (place_meeting(x,y+1,con_wall) || place_meeting(x+2,y,con_wall) || place_meeting(x-2,y,con_wall)) && (jumpKey)&&(!dblJump) {
dblJump = true;
} else if (place_meeting(x,y+1,con_wall) || place_meeting(x+2,y,con_wall) || place_meeting(x-2,y,con_wall)) && (dblJump) {
dblJump = false;
dblJumpCount = 2;
}
if (dblJump) && (dblJumpCount >= 1) {
if (jumpKey) {
vsp = jumpKey * -jumpspeed;
dblJumpCount -= 1;
}
|
|
|
Post by illdiewithoutpi on Dec 19, 2016 14:09:24 GMT -6
Sorry for your question being unanswered for so long; Most of the people here primarily use the discord. I've been busy for a while but I should have some time soon to look at what may be happening.
|
|