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)
Making a library, not quite there yet [HitBoxes]
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Making a library, not quite there yet [HitBoxes]
- Attachments
-
- objectcollision.lua
- (1.5 KiB) Downloaded 88 times
Who is online
Users browsing this forum: Bing [Bot] and 194 guests