How would you go about making ground correction for a platformer but upside down(reversed gravity)? I used this formula:
P.Y+=(P.Y-2)%8-1 but the character just keeps bumping up and down like a pogo stick.
By ground correction I mean checking if the player is inside a solid tile while falling and moving him up (or down in my case) until he isn't.
if pd.dy<0 then
if col_map(pd,"up",1) then pd.f=false pd.dy=0 pd.g=true pd.y+=(pd.y-1)%8
end elseif pd.dy>0 then
if col_map(pd,"down",1) then pd.dy=0