playMaker

Author Topic: RE: Touch and multiple cameras  (Read 1063 times)

acriticalstrike

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
RE: Touch and multiple cameras
« on: August 11, 2013, 07:06:07 PM »
I've watched the official tutorial here: http://www.youtube.com/watch?feature=player_embedded&v=DFmwLGhfWzY

I am using two cameras in the scene one camera for the main content, the other that simply displays 3d GUI objects. Now I realize the tutorial states that I must set the second camera that points at the 3d GUI objects to work, and when i do that I'm able to touch the object with my android and it functions. The issue is that I cant set the tag for the second camera to Main Camera without messing up my scene. Is there a way I can set the GUI buttons so that they function without using a camera set to with the tag "main camera". I'd like to use a different tag. When i DONT set the camera that points at the GUI buttons to "main camera" it stops working... So what does the tag "main camera" actually do and how can i use some other tag instead?

 ???

You'll see an example of what I'm talking about 18-21 mins into the video. There must be a way to get this to work without setting my second camera tag to "main camera"
« Last Edit: August 11, 2013, 07:07:40 PM by acriticalstrike »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: RE: Touch and multiple cameras
« Reply #1 on: August 14, 2013, 07:03:38 AM »
Hi,

 yes, simply have the arrow buttons as part of the gui on the same Camera, that's all. that example is showing an advanced way with camera render.


typically, each of your arrow are either a gui texture or something, and you have an fsm on it that listen to mouse or touch events and send fire an event to control your game.

does that make sense?

I made something very similar a while ago:

http://hutonggames.com/playmakerforum/index.php?topic=2534.msg11311#msg11311


bye,

Jean