The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Collision detection problem base off the lazyfoo tutorials
LAURENT*


Joined: 06 Jan 2013
Posts: 32
Hello all

I have come across a confusing problem with my collision detection. My collision detection is base off of the legacy tutorials of lazy foo for tilting. I was recently doing some testing and noticed not all my blocks were registering detection with my character. I scanned over my code quite a few times in multiple places and could not figure out why this was happening. Finally I decided to alter the camera a little and check for collision and strangely the blocks disappeared and reappeared as expected since the tutorial teaches you to only print imagines on screen that are with in the camera's view and this does requires collision detection.
maosk21


Joined: 17 Jun 2014
Posts: 22
Hmm strange. I think i can help you. Tough im on my phone ATM so takes to long to write. Ill be back by tomorrow.