Bit of help with platformer collision detection
Posted: Wed Aug 22, 2018 3:07 pm
Hey
So I recently tried getting back into a bit of coding, thought I'd try making a small platformer game and I'm having a bit of trouble with the collisions system. So I had a function to detect whether two objects are intersecting but this doesn't help me when I'm trying to make platforms at different heights to stand on. I have since deleted the collision function to try to come up with something new but have lost inspiration.
I've got a table called collideList which will hopefully hold all the platforms, they should be drawn in red (for testing). So all the images are drawn at a scale called worldScale based off the window size which should be around 5 for 1080p.
Thanks for any help in advance!
So I recently tried getting back into a bit of coding, thought I'd try making a small platformer game and I'm having a bit of trouble with the collisions system. So I had a function to detect whether two objects are intersecting but this doesn't help me when I'm trying to make platforms at different heights to stand on. I have since deleted the collision function to try to come up with something new but have lost inspiration.
I've got a table called collideList which will hopefully hold all the platforms, they should be drawn in red (for testing). So all the images are drawn at a scale called worldScale based off the window size which should be around 5 for 1080p.
Thanks for any help in advance!