Making a library, not quite there yet [HitBoxes]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
LuaCre
Prole
Posts: 5
Joined: Mon Dec 03, 2018 11:21 am

Making a library, not quite there yet [HitBoxes]

Post by LuaCre » Wed Dec 05, 2018 11:02 pm

Hey, I need help, I have this library for object collision, right now it makes Boxes with a function
Boxes have these properties

x = x position
x2 = max X position (x + width)

same with y,

and v, what the object is "Grass" , "Barrier"

I have a function that tries to return if 2 boxes are colliding, but it doesnt seem to work properly, please help?
(Function name playerColliding I think)
Attachments
objectcollision.lua
(1.5 KiB) Downloaded 4 times

User avatar
pgimeno
Party member
Posts: 1366
Joined: Sun Oct 18, 2015 2:58 pm

Re: Making a library, not quite there yet [HitBoxes]

Post by pgimeno » Thu Dec 06, 2018 7:04 pm

Something very similar to this was recently discussed:

viewtopic.php?p=224233#p224233
Thrust II Reloaded - GifLoad for Löve - GSpöt GUI - My NotABug.org repositories - portland (mobile orientation)
The MS-Github repositories I had have been closed after the acquisition announcement and will be removed in the near future.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests