playMaker

Author Topic: [SOLVED, kinda] Looping via mouse clicks  (Read 1814 times)

Mutajon

  • Playmaker Newbie
  • *
  • Posts: 25
[SOLVED, kinda] Looping via mouse clicks
« on: October 06, 2015, 04:22:54 AM »
Hello  :)

I have a gameObject prefab which I'm trying to make loop through 3 different animation clips. I have 3 states, each with a "play animation" action, and a "mouse pick 2D event" action to transition between the states (see pic).
However, once I run the game, whenever I click the game object, it enters an infinite loop through the three states (after just one click).
How can I make the click reset after the transition from one state to the next?

Thanks to anyone who can help!
« Last Edit: October 06, 2015, 01:55:15 PM by Mutajon »

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Looping via mouse clicks
« Reply #1 on: October 06, 2015, 08:16:37 AM »
try triggering the event on mouse up instead of mouse down

Mutajon

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Looping via mouse clicks
« Reply #2 on: October 06, 2015, 01:54:12 PM »
Thanks for the response. Will check it out sometime.

I think it's a bug. I eventually switched to the default "MOUSE DOWN" action (and therefore had to also switch from 2D collider to regular [3D] one).

Webbstre

  • Playmaker Newbie
  • *
  • Posts: 9
Re: [SOLVED, kinda] Looping via mouse clicks
« Reply #3 on: January 27, 2016, 09:31:32 AM »
Hello! I'm pretty new to playmaker, but I'm having the same problem these people were having. Mouse Down, Mouse Up, it doesn't matter which, it goes into an infinite loop as if the click was never ending. Does someone have a fix for this?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: [SOLVED, kinda] Looping via mouse clicks
« Reply #4 on: January 27, 2016, 01:44:50 PM »
Hi, please update to the latest version: 1.8.0 beta 41 (just released).

It fixes Mouse Button Up/Down so they are consistent with old behaviour.
It also fixes an editor performance bug that crept into 1.8.