Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: infotau on March 15, 2014, 09:43:48 PM

Title: Transporting using playmaker
Post 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 ?
Title: Re: Transporting using playmaker
Post by: xhidnoda on March 17, 2014, 09:13:31 AM
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
Title: Re: Transporting using playmaker
Post by: Lane on March 17, 2014, 01:14:25 PM
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.
Title: Re: Transporting using playmaker
Post by: infotau on March 18, 2014, 11:06:22 AM
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 :)
Title: Re: Transporting using playmaker
Post by: xhidnoda on March 18, 2014, 11:25:25 AM
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?