So when ever the player hits the top of the platform it will just stop moveing
the code
https://pastebin.com/GFpXjE7a
Help platformer hit detection
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Help platformer hit detection
You are only updating your position if your not on a box.
rework this
rework this
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
Who is online
Users browsing this forum: Brotein and 5 guests