Game Development Community

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

#1
02/28/2008 (3:09 pm)
Spaghettini no more - I did it!

Simple Finite State Machine Click Here.

Carpenter Software
#2
02/29/2008 (12:35 am)
Woo hooo! Well done. Looks very nifty. :o)