Path Markers on the fly
by Quentin Headen · in Torque Game Engine · 01/24/2008 (10:04 am) · 4 replies
I just wanted to know, how can I add a path marker to a path at any given time (aka on the fly)? I am trying to let a cop car chase my car, and I want a path marker to be added at my position about every 2 seconds. This is so the cop will be able to chase me. So once again, how can I add a path marker to a path on the fly?
Thanks
Thanks
About the author
Just your average programmer who tries to finish the projects he starts. :) I am currently focused on creating games with Torque engines. My website is http://phaseshiftsoftware.com
#2
01/24/2008 (4:01 pm)
Thanks for the resource Jamal. But is there no way to add markers on the fly?
#3
Thanks for all of your help. :)
01/24/2008 (4:08 pm)
I just want to say that I found a way to do this. I copyed the path marker creation code from the Mission file, and used that to add a marker. Then in code I told the Path itself to add the marker to its list (since the path is just a folder).Thanks for all of your help. :)
#4
P.S.: In the path marker properties (or whatever it's called) under Misc, there are two options; spline and linear. Linear makes the path straight while spline makes it curve.
P.S.S.: You probably figured that out but I put it in just in case you didn't.
P.S.S.S.: Your welcome :-)...
01/24/2008 (4:24 pm)
I thought your question meant "how do you create a path every two seconds so that the cop can chase the car". I must've read wrong...but I'm glad you found the answer :-).P.S.: In the path marker properties (or whatever it's called) under Misc, there are two options; spline and linear. Linear makes the path straight while spline makes it curve.
P.S.S.: You probably figured that out but I put it in just in case you didn't.
P.S.S.S.: Your welcome :-)...
Torque Owner Jamal Moon
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6673