Z
zzs1339004604
Guest
I'm trying to make a dash like how celeste done,but when I close to the block and dash,it can't work,and if I reduce the collision it will be stuck in the block.
GML:
// Update Horizontial Movement //
if(!place_meeting(x + xSpeed,y,oBlockParent))
x += xSpeed;
else
if(!place_meeting(x + sign(xSpeed),y,oBlockParent))
x += sign(xSpeed);
// Update Vertical Movement //
if (!place_meeting(x,y + ySpeed,oBlockParent))
{y += ySpeed;}
else
{
move_contact_solid(point_direction(x,y,x,y + ySpeed),maxFallSpeed);
ySpeed = 0;
}