[Playmaker] PB? Can we do such a thing without scripting ?
Publié : 20 Jan 2016 16:09
Hi all, I have some problem in advanced use of PLAYMAKER in unity.
I began a simple game to test the monty paradox problem (see in internet).
The program shows 3 closed doors with one treasure behind only one.
You select one door and the program opens another door without any treasure before you open your selected door.
Then It proposes to you to keep your choice or try the other door by clicking on the door.
In the algorithm, I want a “manager” that do actions according to a global variable.
For example, if a first door has been selected, the computer opens another door;
a state with a transition which is the global variable “FirstDoorSelected”
If FirstDoorSelected=true then Gameobject.EnableFSM(FSM2)=true…leads to the animation of the door opening.
So the playmaker script has to react to a click on a door and do different things according to the global variable states
More generally, I probably need to use conditions IF….. but cannot find on internet or forums any accurate ideas…. (I watched all Hutong tutorial Videos, here no triggers to set a variable!)
I do not want to use script if possible which seems to be possible with Playmaker for such a simple program....
Do you have any idea?
Jean Marc
I began a simple game to test the monty paradox problem (see in internet).
The program shows 3 closed doors with one treasure behind only one.
You select one door and the program opens another door without any treasure before you open your selected door.
Then It proposes to you to keep your choice or try the other door by clicking on the door.
In the algorithm, I want a “manager” that do actions according to a global variable.
For example, if a first door has been selected, the computer opens another door;
a state with a transition which is the global variable “FirstDoorSelected”
If FirstDoorSelected=true then Gameobject.EnableFSM(FSM2)=true…leads to the animation of the door opening.
So the playmaker script has to react to a click on a door and do different things according to the global variable states
More generally, I probably need to use conditions IF….. but cannot find on internet or forums any accurate ideas…. (I watched all Hutong tutorial Videos, here no triggers to set a variable!)
I do not want to use script if possible which seems to be possible with Playmaker for such a simple program....
Do you have any idea?
Jean Marc