Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: weilies on March 23, 2014, 12:26:03 PM

Title: Countdown X seconds and Perform action Y in Playmaker
Post by: weilies on March 23, 2014, 12:26:03 PM
How to configure Playmaker,
Scenario:
"Game run for 10 seconds and it counting down secs-by-secs.
Once it reaches 0, display a Playmaker log "you lose" (trigger in another state)

Thanks for the helps.
Title: Re: Countdown X seconds and Perform action Y in Playmaker
Post by: Lane on March 23, 2014, 12:47:26 PM
You can just use the Wait action on a fresh FSM, then send a transition event from it to another state that uses a GUI text label action or something to show the text. It's a fairly simple task, just managing a "I haven't lost yet" state, then transitioning to the "I've lost" state when the Wait action is done.