Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: infotau on March 15, 2014, 09:43:48 PM
-
Hello,
I hope you all are fine.
I am new to playmaker, i would like to allow the player to click on props and then a pop up action window apear he can then choose which action to make, for example :
There is a sofa, when the player get closer to it he will be able to click on the sofa, a pop up window apear with actions like sit, lay, jump on it etc... once he choose for example to sit, he will be transporting to the proper position and rotation and the siting animation will play.
How can i do this please ?
-
You want a lot of work here.
Please, do step by step.
1. Move your player with traslate
2. Make a game object empty, add collider and set "trigger true"
Come back when you've done that
-
That is indeed a long process, and much is involved in getting it to work.
You can use Mouse Pick to click the sofa.
Radial GUI info:
http://hutonggames.com/playmakerforum/index.php?topic=4132
You'll have to experiment with the animation part. 2D or 3D? Mecanim or Legacy? Might be as simple as using Move Towards, Set Rotation and Play Animation.
-
Its 3D and Mecanim animations
You want a lot of work here.
Please, do step by step.
1. Move your player with traslate
2. Make a game object empty, add collider and set "trigger true"
Come back when you've done that
I guess first need to make the props able to click on them :)
-
Hi
Is up to you if you want to move your player with click or just move without click.
1. If you want to move with click...Set FSM on your player with get mouse button down, then in another state use traslate action.
2. If you want to move without click... just make one state and use traslate action
you get that?