playMaker

Author Topic: Newbie needs some help  (Read 2002 times)

andre_sprs

  • Playmaker Newbie
  • *
  • Posts: 3
Newbie needs some help
« 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)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Newbie needs some help
« Reply #1 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 :


andre_sprs

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Newbie needs some help
« Reply #2 on: January 11, 2018, 03:55:04 PM »
Thank you. I will give this a try now  :)

andre_sprs

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Newbie needs some help
« Reply #3 on: January 11, 2018, 06:46:57 PM »
In your 'rotate' FSM how did you add 'Touched' which then goes to swap?

omgitstri

  • Playmaker Newbie
  • *
  • Posts: 46
    • My Prototypes
Re: Newbie needs some help
« Reply #4 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
Tri Nguyen
Game Designer at Nvizzio Creations

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Newbie needs some help
« Reply #5 on: January 12, 2018, 04:00:39 AM »
Hi.
Here is a video about Global Events and Global Transitions.