Struggling with collisions problems
Almost 24h gone and I’m still struggling with tile-based collision problems. In the meantime, I’ve tried to do some assets:
The background feels nice (it will have to be altered somehow during… the 10-second interval), even though it was the easiest to create. The robot and tiles could be greatly improved.
But for now, I’ll be trying to fix once and for all this collision system.
Comments
BackwardSpy
24. Aug 2013 · 20:10 UTC
Anything I can help with? I’ve been through years of struggling with collisions until I finally got a decent feel for how to do them correctly, so maybe I can help out. 😀
Niavlys
24. Aug 2013 · 20:49 UTC
Well, there is clearly something broken in my collision detection, but I’ve noticed that it gets a lot better (not 100% perfect, but 500% better) when I call the collision-dealing function twice. It seems to me there are a lot of separate problems that it will be hard to deal with.
Niavlys
25. Aug 2013 · 17:52 UTC
“In general you want to resolve the collision that is shallowest. So, get the penetration depth in the X and Y directions, find out which one is smaller and move the character in that direction.”
