Page 1 of 1

Making a library, not quite there yet [HitBoxes]

Posted: Wed Dec 05, 2018 11:02 pm
by LuaCre
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)

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

Posted: Thu Dec 06, 2018 7:04 pm
by pgimeno
Something very similar to this was recently discussed:

viewtopic.php?p=224233#p224233