What is the easiest way to call the Machine once each time the GameState called StageStartGameState becomes Active?
I mean I want to execute NotifyStart in AutoMachine by changing GameState.
It was not suitable for GlobalMachine to run with Type: Auto, because it would be called multiple times in the CheckTimeout interval.
Setting a Flag that says it is running in LocalVariable every time it starts is also likely to create other bugs.
Is there a feature we are missing or a good idea?
I'll look into adding that :)
Currently, you could use a global bool variable instead, auto machines can react to that.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I defined a GlobalBool called isStageStartGameStateActive.
Then, as a VariableCondition condition for the GlobalMachine, in addition to when StageStartGameState is Active, I made it so that it is only executed when that added GlobalBool is False.
Then, in the executed Machine, ChangeVariableNode sets isStageStartGameStateActive to True.
Then, I prepared a separate GlobalMachine that sets Bool to False when StageStartGameState becomes InActive.
However, I will be using this pattern of processing in GameState a lot in the future, so the number of definitions is doubled because of the GlobalMachine for InActive, and it is still a lot of work.
I sincerely hope that a flexible EventSystem will be added.
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight
I'm still looking into adding new start variants to global machines.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
■iOS
https://itunes.apple.com/us/app/id679133055
■Android
https://play.google.com/store/apps/details?id=com.WabiPlant.SAMURAI100SlashLite
New ORK Battle Game
■iOS
https://itunes.apple.com/jp/app/id1403510381
■Android
https://play.google.com/store/apps/details?id=com.Company.AgentFight