T
The Green Dev
Guest
So since my game uses decimals for movement, it's possible to clip into corners by about a single pixel if you're both frame and pixel perfect. I made something to avoid it but it doesn't seem to work.
So instead of actually moving by sign(ysp) it seems to only move by -1, which causes it to just teleport you up whenever you collide with a corner from under. It's VERY annoying, is there a way to fix this or at least have a different way to avoid corner clipping?
Code:
while place_meeting(x,y,objSolid)
{
if ysp != 0
{
y -= sign(ysp)
}
else
{
y -= 1
}
}