I'm trying to understand how Playmaker works but it is so confusing for me. Any guidance is very much appreciated!
I asked ChatGPT how to do this (read somewhere on here that GPT has a good understanding of Playmaker). It gave me a 4 step process that seems simple enough but I am having trouble implementing it.
Step 1 - make a QuitButton.
Done
Step 2 - add an FSM to the QuitButton.
Done
Step 3 - detect button click.
This is where things start breaking down.
"Step 3: Detect Button Click
In the FSM, you’ll see a default state (usually State 1)
Add the action:
UI → Get Button Click Event
Set Store Result or Send Event to something like:
Event Name: CLICK
This action listens for the UI button being pressed."
The closest Send Event I see is UI CLICK. Is this what I want? Also, even before I get to step 4 there's a big red error on State 1. 'Transition missing target state: UI CLICK'. What does this mean?
Step 4 - Quitting.
"Step 4: Quit the Application
Create a new state called Quit Game
In the original state, add a Transition:
Event: CLICK
To State: Quit Game
In Quit Game, add this action:
Application → Quit
That’s it. When the player clicks the button, the game exits."
I figured out how to create a new state and I added the quit action to that state, but I have no idea what the transition is or how to add one.