playMaker

Author Topic: Go some problem with get(fsm) set(fsm)  (Read 672 times)

vonpopov

  • Junior Playmaker
  • **
  • Posts: 96
    • View Profile
Go some problem with get(fsm) set(fsm)
« on: May 21, 2014, 04:09:32 PM »
Hi,

I get stuck in my project with the use of get(fsm) set(fsm).
Let me explain why :

In one hand, i had a "Doubleclick FSM" to detect if i did a double right click, and register it into a variable (bool)

In other hand, i am using a "Main FSM" (same object than previous FSM) that need to know when perfoming action if double right click have been done or not.

Problem is :
DoubleClick FSM need a wait (0.1) , other why it doesnt change the bool (instantaly true, then false).
Main FSM had strong difficulty to get "synch" with the correct actual status of DoubleClick FSM (true or false).

If too fast, i get nothing, if too late it breaks.

I am sure, it exists some kind of great way to perform that kind of synchro ? and i am not aware of.

nb : i can't use global variable (which would solve the problem in a sec), because it has to stay a simple variable.


any ideas ?