playMaker

Author Topic: Timed Mouse Click or Finger Press actions in PlayMaker  (Read 1682 times)

xoured

  • Playmaker Newbie
  • *
  • Posts: 2
Timed Mouse Click or Finger Press actions in PlayMaker
« on: March 27, 2014, 09:52:46 PM »
Basically, I was curious as to how you might go about having a similar action to the actions of that in a game like Osu. There is an icon or button that has a perfect time for you to click/press it and a not so perfect time to click/press it. Surrounding the icon/button would be a indicator telling you when to hit it and when the opportune time is. If anyone could provide some insight that would be great.

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 318
Re: Timed Mouse Click or Finger Press actions in PlayMaker
« Reply #1 on: March 27, 2014, 11:05:54 PM »
I don't know what Osu is but I get the gist of the mechanic you're after.

For the functionality:
Just animate a float variable over seconds, e.g. 5.0s -> -5.0s. 
Rate the users input in how close to 0.0s their tap/click is.

For the visual display:
A circular button with a secondary highlight "ring" that slowly scales down in size to be the same circumference as the button, using the above floats as a relative touchstone just make sure the visual "ring" perfectly overlaps the circular buttons outline at the same time the float is 0.0s.

Hope that helps.

xoured

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Timed Mouse Click or Finger Press actions in PlayMaker
« Reply #2 on: March 28, 2014, 07:56:27 AM »
That helps a lot Thanks also would you know of a way to spawn game objects randomly around the predefined area of your scene?