playMaker

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

andre_sprs

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Newbie needs some help
« on: January 11, 2018, 10:26:12 AM »
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: 2884
    • View Profile
    • jinxtergames
Re: Newbie needs some help
« Reply #1 on: January 11, 2018, 11:52:45 AM »
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
    • View Profile
Re: Newbie needs some help
« Reply #2 on: January 11, 2018, 01:55:04 PM »
Thank you. I will give this a try now  :)

andre_sprs

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

omgitstri

  • Playmaker Newbie
  • *
  • Posts: 44
    • View Profile
    • My Prototypes
Re: Newbie needs some help
« Reply #4 on: January 11, 2018, 06: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: 2884
    • View Profile
    • jinxtergames
Re: Newbie needs some help
« Reply #5 on: January 12, 2018, 02:00:39 AM »
Hi.
Here is a video about Global Events and Global Transitions.