Reply To: Turn-based game – turn-based execution of Actions

Forums 💬 NodeCanvas 🗨️ General Discussion Turn-based game – turn-based execution of Actions Reply To: Turn-based game – turn-based execution of Actions

#14863
javier
Participant

    Thank you very much for your answer. I understand what you explained that they run in parallel and it makes sense.

    The thing is that our game is strictly divided in Back-end and Front-end, and we will not be using BTs for anything animation-related. Our Back-End knows nothing about Unity or rendering, and it could run as a stand-alone program if needed.

    This means we need to Tick the BT just once per turn. It makes no sense for us to tick it per frame as the game state does not change. Also, we don’t need the Actions to run per-frame, as there’s nothing they can do as the game state is the same. They only need to be run once per turn, just as the BT. Turns are triggered by the human player with a TURN button.

    Right now the solution I suggested is running fine, but I wanted to know if there is a different suggestion from you.

    Thanks!

    Javier