ID:175253
![]() May 18 2003, 4:41 pm
|
|
How could I make it so a trail is left behind after a character goes over it (Ie:Moving in hyperspeed and a trail of dust is left behind) but after like a second it disapears?
|
Somethings wrong, I tried to make it so the trail is the same direction as the usr but it didnt work. Here's what I tried:
obj/trail |
Im comfused how do I do that, this wont work:
mob/Move() var/So = new/obj/trail(src.loc) So.dir = src.dir ..() I get the errors: Main.dm:12:error:So.dir:undefined var Main.dm:11:So :warning: variable defined but not used How can I fix the errors but still make it work? |
Koolguy900095 wrote:
Im comfused how do I do that, this wont work: var/obj/So = new/obj/trail(src.loc) You just needed to tell it that So was an obj pointer, not just a variable. An obj can have a direction variable, but just a variable probably wouldn't. |
Ok thanks, now i have a problem my auto-piolet doesnt work :(. Is there something conflicting with my auto-piolet coding:
mob and the trail coding: obj/trail If something is conflicting between the two, how can I fix it? |
<code>obj/trail New() spawn(10) del(src)</code>
Create a trail behind the player like this:
<code>mob/Move() new obj/trail (src.loc) ..()</code>