Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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)
-
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)
-
Thank you. I will give this a try now :)
-
In your 'rotate' FSM how did you add 'Touched' which then goes to swap?
-
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
-
Hi.
Here is a video about Global Events and Global Transitions.