1
General / Clamp to Screen
« on: April 27, 2011, 05:49:15 am »
Thanks for the reply! And thanks for pointing out my mistakes >.<
But I'm still not able to get it working correctly. I did change the function and the playerBoundingBoxY is supposed to be playerPositionY, thought code::blocks auto-entered the correct one while typing. my bad.
even after those corrections i'm still able to travel outside the window. I'll keep at it and try it in a new project because my code is a mess of different tutorials right now.
But I'm still not able to get it working correctly. I did change the function and the playerBoundingBoxY is supposed to be playerPositionY, thought code::blocks auto-entered the correct one while typing. my bad.
even after those corrections i'm still able to travel outside the window. I'll keep at it and try it in a new project because my code is a mess of different tutorials right now.