Game Development Community

TGB and the Actor class

by Chip Lambert · in Torque Game Builder · 01/31/2007 (7:14 pm) · 2 replies

I've tried to do a forum search but I couldn't find anything regarding this.

Has anyone implemented the Actor class (www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8503) into TGB? If so was there any issues?

Thanks!

#1
02/01/2007 (6:39 am)
I rolled an Actor class for 2D platformers a while back. It worked great, but if you do it in script you'll invariably run into the two-level inheritance limit. One way around that is to use containment. For example, AIActor would have an AIController reference or something. Anyway, it worked pretty well.
#2
02/01/2007 (6:45 am)
Thanks Thomas. That's the information I needed :)