Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / need help with code:trail how to delete if too long??

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 2nd Aug 2006 20:25
hi,ive been trying to come up with my own trail code,after browsing the code snippets board.

heres my code:


im not sure how to delete the parts of the trail that were made at the beginning,if the trail is getting too long.help??
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 3rd Aug 2006 00:48
hey,i figured it out!

yes!!

try this code,its cool,kinda of like a tunnel like thing



thanks to myself. lol
Euphoria
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: United Kingdom
Posted: 3rd Aug 2006 11:41
looks kinda neat.

Just some optimisation thoughts:
-------------------------------
You could trim out



As it doesn't seem to be used.

instead of deleting and then re-instancing objects, could you not just reposition the one you were going to delete in the new ones place?

Not sure as to how much this would help but perhaps store object 1's position and rotation in variables to save having to make lots of calls to object angle x(1) etc...
-------------------------------

Not trying to dis your work, its great stuff Dave
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 3rd Aug 2006 17:05
thanks euphoria,good idea about replacing them,just not sure how to do it yet.

Login to post a reply

Server time is: 2024-11-26 14:25:16
Your offset time is: 2024-11-26 14:25:16