Ladi_Pix3l
Member
I understand how different this is to horizonal platforms when it comes to platformers. Vertical platforms seem to be taboo when it comes to tutorials.
my collision code for the player's End Step event
Collision code for vertical moving platform
this...…. kinda works. Theres just a lot of skipping and hopping when descending. and I'm not sure on why...
my collision code for the player's End Step event
Code:
// Vertical
repeat(abs(vsp)) {
if (!place_meeting(x, y + sign(vsp), oParSolid))
y += sign(vsp); //If player don't collide under or above, update y position
else {
vsp = 0; // If he collides, can't go further...
break; // ..and we stop checking vertical collisions this frame
}
}
Code:
y = scrWave(ystart,peak,1,0);
if (instance_exists(oPlayerParent))
{
if (place_meeting(x,y+1,oPlayerParent))
{
oPlayerParent.y = y-16;
}
}