Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Hugo111 on August 11, 2017, 07:04:56 AM
-
Hi all I have a problem in that I need a right and left ( Oculus touch) handed player in my game...
I can of course make two games duplicating the left and right scenes, but that almost doubles the size of the game! Or I can spawn in (create object) or activate the player (activate game object ) swapping each over while in the game . The latter unfortunately just slows down game play and continuity . I'm sure there is a way to globally sporn in one or the other from the outset and not duplicate scenes but I cant figure how to do it, any ideas or examples ??
-
Hi,
i have no experience with oculust
What exactly needs to be changed?
Maybe a few arrays (game object / position / rotation / material / other) can help.
If left handed trigger the arrays to change positions / rotations / etc.
And i would have the option to chose left/right only on the start of the game or in a option menu on the main menu (when the main game is not yet loaded)
-
Hi thanks for your reply ! So I would I suppose have both players in the same position in each of the scenes in the correct position , one activated and one not activated, how would I create a global action to switch between one or the other from the outset in the First scene ? menu. This is my game www.ufencevr.com which will give you an idea of what I mean, and I have slightly different avatars (fencers) setups in each scene so would need to choose each (one or the other ) from the outset . Ta
-
Hi,
I think i would go for 2 prefabs 'player' one left handed and one right handed.
in a menu before the game start the player can select left handed or right handed
when loading the game load in the appropriate 'player'
-
Hi so you are saying have two of the same scenes, one with one left hand type and the other same scene with the right hand type ? And move on a different but the same scene flow with each of the different fencers ? Is that the only way ? Best H
-
Hi.
No, only 1 scene but 2 prefabs from the player.
The right hand player standard in the scene and the Left hand player in a resource folder.
Just to be sure, do the enemies also need to change when left hand is chosen?
If so maybe it would be better you mirror the camera
and flip the controls
Place the attachment i included on your camera.
If this is what you need i can make an action for it :)
-
Hi Thanks, but the opponents enemies don't need to flip. I will take a look at that anyway thanks . Only the left and right handed players need to be slightly different in each scene. Ive just seen a demo on how to make arrays, I think that may be the answer if I can work it out ! Just turn one or the other on or off ! Do you know of any appropriate tutorials on the them ? H
-
Hi,
You can find several tutorials here :
https://hutonggames.fogbugz.com/default.asp?W548
-
Thanks H