Game Development Community

Way of managing levels with behaviors?

by Adrian Leigh Gordon · in Torque Game Builder · 06/09/2009 (11:33 am) · 0 replies

Hi there, i'm working on a small, simply platformer game and I wondered if there was a way of managing my levels and having them change properly, I thought maybe behaviors would be a good way of doing this? I'm not sure.

I have a tile that represents my 'exit' and I need the level to change when the player touches it.

Having to code the exit each time for every level seems like a backwards way of doing it, but i'm new to torque and can't think of how i'd apply another method of doing so, does anyone else have any suggestions? I couldn't find much information on the TDN and what little info I could find on changing levels was quite confusing.

I was thinking of having a behavior that can recognize which level is currently loaded, which one comes next, and tells the exit to load that level, but i'm not sure how i'd go about coding that or if it's possible in torque.

Thanks for any information in advance, I have TGB 1.7.4, I don't have the pro version so no access to source code.