TGC Codebase Backup



Stop the Cam looking too far up or down by The Jackal

18th Mar 2004 14:46
Summary

Stop your camera looking too far up or down



Description

It is true it has been done before but they dont work the ones i have found so here is a tried and tested straight from my own program that stops the camera looking too far up or too far down try it and see for yourself, if you use it in your progs pls give a little cred to me or the game creaters site

thanx

Aj



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    Rem stops the camera looking too far up or down
if CameraAngleX# > 90 and CameraAngleX# > 0 and CameraAngleX# < 200
   CameraAngleX# = 90
Else
   if CameraAngleX# < 270 and CameraAngleX# < 360 and CameraAngleX# > 200
      CameraAngleX# = 270
   Endif
Endif