Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: andre_sprs on January 11, 2018, 12:26:12 PM

Title: Newbie needs some help
Post by: andre_sprs on January 11, 2018, 12:26:12 PM
Hey Everyone,

I'm new to unity and Playmaker and need some help with a game I'm working on. Can someone walk me through on how I can make the white paddle rotate around the circle and when I tap the screen it rotates in the opposite direction? (Please see screenshot)
Title: Re: Newbie needs some help
Post by: djaydino on January 11, 2018, 01:52:45 PM
Hi.
At the center of the circle you can place a empty object (or place an object and remove the mesh for easier positioning)
Then place the paddle as a child object.

Then you can use (for example) 'Rotate' and rotate to the desired  angle and turn on Per Second.

Here is a gif example on how you can set this up :

(https://i.imgur.com/3tqQXWe.gif)
Title: Re: Newbie needs some help
Post by: andre_sprs on January 11, 2018, 03:55:04 PM
Thank you. I will give this a try now  :)
Title: Re: Newbie needs some help
Post by: andre_sprs on January 11, 2018, 06:46:57 PM
In your 'rotate' FSM how did you add 'Touched' which then goes to swap?
Title: Re: Newbie needs some help
Post by: omgitstri on January 11, 2018, 08:33:55 PM
Hello,

That's a global event. You can get it by right clicking on a State > Add Global Transition > [Event Name]
You can trigger it using the Send Event action
Title: Re: Newbie needs some help
Post by: djaydino on January 12, 2018, 04:00:39 AM
Hi.
Here is a video about Global Events and Global Transitions.