playMaker

Author Topic: Mouse Over event cant send Global transition?  (Read 1385 times)

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Mouse Over event cant send Global transition?
« on: July 19, 2020, 09:11:46 AM »
Hi!
I have this little problem that for some reason Mouse Over event doesn't send a global transition to another FSM. What am i missing here?




djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Mouse Over event cant send Global transition?
« Reply #1 on: July 19, 2020, 01:22:28 PM »
Hi.
The action can only send to a Global transition on the same fsm not to a different fsm (like most actions)

A solution is to look for Mouse Over and Mouse Off on a separate fsm.

state 1 :
Mouse Pick Event : Mouse over.
If mouse over go state 2

State 2 :
Send event (By name) and send event to Global Cursor Pick
Mouse Pick Event : Mouse off.
If off go state 3

State 3 :
Send event (By name) and send event to Global Cursor Don't Pick
go state 1

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Re: Mouse Over event cant send Global transition?
« Reply #2 on: July 19, 2020, 06:05:20 PM »
That's unfortunate. :(
I'm gonna do what you suggested. Thank you for the help! :)

SawyerK

  • Junior Playmaker
  • **
  • Posts: 99
Re: Mouse Over event cant send Global transition?
« Reply #3 on: July 28, 2020, 08:19:40 AM »
Is there an easier, less complicated way to have the same effect? I only want something like, if the cursor is over the door handle, the cursor icon changes and when its off then it goes back to basic cursor.