#8598 - night_ - Wed Jul 16, 2003 5:33 am
Hi guys,
I am currently working on a tile based jump'n'run game. The scrollengine and character control works fine so far. Right now I am trying to find a solution for collision detection with the background (tiles). I am familiar with methods of detecting collision and I read the discussions in this forum and a lot of articles about CD. What caused me a lot of headache over the last couple of days is collision response. How do I react to a collision? Where do I place the sprite when a collision occured?
A friend of mine told me to check before a move if a collision will occure and if yes, to just leave the sprite where it is. The problem
however is, that this is not possible in all cases and it gets quite inprecise.
All articles I found only describe determining that a collision occured but not the response. I need a complete solution for collision detection. I know this is not something new and it was done 100s of times on 16 bit systems and GBA. Isn't there any document or source code which exactly describes the whole thing? How did people do that in SNES and Genesis games?
Is there sourcecode of a more complex, maybe even commercial (jump n run) game available?
I would greatly appreciate your help.
Thanks,
night
I am currently working on a tile based jump'n'run game. The scrollengine and character control works fine so far. Right now I am trying to find a solution for collision detection with the background (tiles). I am familiar with methods of detecting collision and I read the discussions in this forum and a lot of articles about CD. What caused me a lot of headache over the last couple of days is collision response. How do I react to a collision? Where do I place the sprite when a collision occured?
A friend of mine told me to check before a move if a collision will occure and if yes, to just leave the sprite where it is. The problem
however is, that this is not possible in all cases and it gets quite inprecise.
All articles I found only describe determining that a collision occured but not the response. I need a complete solution for collision detection. I know this is not something new and it was done 100s of times on 16 bit systems and GBA. Isn't there any document or source code which exactly describes the whole thing? How did people do that in SNES and Genesis games?
Is there sourcecode of a more complex, maybe even commercial (jump n run) game available?
I would greatly appreciate your help.
Thanks,
night