Torquescript spaghettini -> FSM
by Carpenter Software · in Technical Issues · 08/11/2007 (11:52 am) · 2 replies
I had just finished my first TGB Game where its game logic is all in torque script. The code is spaghettini. If I want to make changes to it or make updates, the game code may have to be rewritten. It is basically a mess.
I am ready to start my second game but I want to experiment with TGB by setting up a Finite State Machine or something similar. There are several ways of setting this up depending what is required. Messaging would be needed for object interaction and events. Is there a state machine within TGB? The goal is to use a state diagram to configure the game logic. All suggestions are welcomed.
Carpenter Software
I am ready to start my second game but I want to experiment with TGB by setting up a Finite State Machine or something similar. There are several ways of setting this up depending what is required. Messaging would be needed for object interaction and events. Is there a state machine within TGB? The goal is to use a state diagram to configure the game logic. All suggestions are welcomed.
Carpenter Software
Torque Owner Carpenter Software
Simple Finite State Machine Click Here.
Carpenter Software