playMaker

Author Topic: GUI Button to switch Camera In Game  (Read 3999 times)

jackson5759

  • Playmaker Newbie
  • *
  • Posts: 1
GUI Button to switch Camera In Game
« on: September 06, 2011, 03:23:45 AM »
Hi, i'm doing an interactive walkthrough and i need to make two GUI button which user can change the camera by clicking the button. 1 camera is using camera orbit and another camera is using 1st person view camera. Please help me..

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
Re: GUI Button to switch Camera In Game
« Reply #1 on: September 06, 2011, 09:49:43 AM »
Well you need to have your two cameras.. Your default camera will be active.. as in the little radio button in the Inspector beside the object type name Camera.. The second camera is not active..

Then with your buttons you use the Camera Actions: Cut To Camera and Maybe Camera Fade In and Camera Fade Out..

What i do is i fade out the camera in one event

Then i use Draw Fullscreen Color, Cut to Camera, Plus any other functions i need to call to reset some menus and objects etc... in the next event

Fade camera in in the last event..

That is it.. not really fancy but it works.

Q