Game Development Community

Custom Paths at run time?

by Phillip "Renolc" Gibson · in Torque Game Builder · 12/07/2006 (1:59 pm) · 1 replies

Is it possible to create custom made paths during the run time of the game? If not, maybe there's a way to create a custom path-like object that would be sutable?

I have an idea (that I haven't started any coding on yet) that involves the user creating 'paths' with the mouse that sprites and/or effects can travel on. I don't have all the details worked out just yet, but right now, the sprites would only have to travel through the path once, and after it hits the end it would be deleted along with the path.

Any ideas? I'm just wondering if this is possible (preferable without making engine changes -- but I have the source it if comes down to that).

#1
12/07/2006 (2:06 pm)
I'm pretty sure it's possible, even though I've never done much of anything with paths. They can surely be created in script (same as creating a static sprite - make a path and save the level and then look at the datablock for the path). It wouldn't surprise me if the levelbuilder code for drawing paths was in script either - check the tools directory.

Hope that helps!