Making a library, not quite there yet [HitBoxes]
Posted: 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)
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)