JeanSwamp
Member
So today I was trying to fix something that I've been delaying for a long time, and I actually managed to fix it.
Now the problem is, somehow I managed to mess up and forgot what was the thing that I had to change in order for it to work.
The problem I'm having is this:
When standind on top of a jumpthrough platform, if I overlap with anotherone, it will cause the player to fall.
This is how the code looks like:
Playing around today I changed some stuff and I managed to fix it, somehow I'm stupid and must have undo it.
Everything else is working just fine.
Hopefully someone can point me out the mistake
Now the problem is, somehow I managed to mess up and forgot what was the thing that I had to change in order for it to work.
The problem I'm having is this:
When standind on top of a jumpthrough platform, if I overlap with anotherone, it will cause the player to fall.
This is how the code looks like:
Code:
var vcollide;
vcollide = instance_place(x,y+vsp,oJumpTh)
if (vcollide != noone)
{
if (bbox_bottom < vcollide.bbox_top) && !(state == states.ladder) && !downready
{
if (!place_meeting(x,y,vcollide))
{
while (!place_meeting(x,y+sign(vsp),vcollide))
{
y = y + sign(vsp);
}
vsp = 0;
}
}
}
Everything else is working just fine.
Hopefully someone can point me out the mistake
Attachments
-
5.3 KB Views: 11