06-18-2011, 09:45 PM
I suppose that you're using a code similar to the part : "DEMO : TEST CAMERA MOVES" to assign keys to camera commands.
In that case, you should replace :
by :
With this modification, if the switch which number is your_switch_id is active, so is the camera rotation.
In that case, you should replace :
Code:
elsif Input.press?(Input::L)
increase_theta(2)
elsif Input.press?(Input::R)
increase_theta(-2)
Code:
elsif Input.press?(Input::L) && $game_switches[your_switch_id]
increase_theta(2)
elsif Input.press?(Input::R) && $game_switches[your_switch_id]
increase_theta(-2)
With this modification, if the switch which number is your_switch_id is active, so is the camera rotation.
Some scripts :
Working on :