-
Trouble with line collision
I have code for a line based platformer. The code I wrote works fine until you get to the intersection between two lines, where you fall through. (The lines are all connected). In many tutorials I have seen, they also have this problem. How can I keep the player from moving through the cracks?
-
Senior Member
make them overlap by 1 pixel?
-
I tried that. It still goes through.
-
Senior Member
by 2 pixels then?.. no, really, noone can't debug code without even seing it. and if you do paste your code, I will find another excuse, such as "this is math & phi not help me find a bug in my code forum".
-
never mind, I figured it out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|