lamatoast
Member
Is there a better way to do vertical collisions? because when use this way, it sometime draws the player one pixel into the ground and it's driving me crazy.
GML:
vsp += grv
if place_meeting(x,y+vsp,obj_wall)
{
while !place_meeting(x,y+sign(vsp),obj_wall)
{
y += sign(vsp)
}
vsp = 0
}
y += vsp
Last edited: