playMaker

Author Topic: Global transition suggestion  (Read 2748 times)

emperor1412

  • Playmaker Newbie
  • *
  • Posts: 2
Global transition suggestion
« on: September 21, 2014, 08:54:08 AM »
Hi, I run into this situation which cause me to suggest a solution.
As in the attached picture.



I used global event "Get hit" in 2 positions (2 red rectangles as in the picture).
The idea is that if I am currently in "walking" state and the global event "Get hit" got fired then I want to process it specially by going the state "Resolve Get hit while walking"
When I am not in "walking" state and event "Get hit" got fired then it will be processed normally.
But it seem that the current system always jump into the global transition which then jump into the state "Hit"

Does that sound reasonable ??

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Global transition suggestion
« Reply #1 on: September 21, 2014, 10:53:36 AM »
So a simple check to first see if the event can be fired from the current state and if it can't then the global event is second in line.

I think that's probably a fair suggestion. The only use case I can think of is doing what you're trying to do here but on the other hand you could just add that check in the Hit state to see what the status of the character is and play the right animation or whatever from there.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D