Help platformer hit detection
Posted: Mon May 14, 2018 10:46 pm
So when ever the player hits the top of the platform it will just stop moveing
the code
https://pastebin.com/GFpXjE7a
the code
https://pastebin.com/GFpXjE7a
Code: Select all
if coln(box[i].x-5,box[i].w-5,box[i].y-5,box[i].h-5,new.x,new.y,player.w,player.h) == false then
player.y = new.y
player.x = new.x
end