Isometric Camera Function by Preston C28th Oct 2003 10:00
|
---|
Summary This function sets a camera in an isometric view point. Description This function will set a camera to an isometric view point. You must set where you want the camera to point to, how close you want the camera to be to this point, and the side you want the camera to be. Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com function IsometricCamera(x#,y#,z#,zoom#,angle#) rotate camera 0,0,0 position camera x#,y#,z# if angle#=1 then yrotate camera 0 if angle#=2 then yrotate camera 90 if angle#=3 then yrotate camera 180 if angle#=4 then yrotate camera 270 if angle#<1 or angle#>4 then yrotate camera 0 yrotate camera (camera angle y()+135) xrotate camera 315 move camera zoom# yrotate camera wrapvalue(camera angle y()-180) xrotate camera wrapvalue(camera angle x()+90) endfunction |