Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How does trail color change in scripts?

Asked by
Lie_Star -11
4 years ago

How does trail color change in scripts? Does its color also have time, and how is this indicated in the scripts?

1 answer

Log in to vote
0
Answered by
DanzLua 2879 Moderation Voter Community Moderator
4 years ago

A trail's color property uses something called a ColorSequence

How long it takes for the color to change depends on the trail's "LifeTime" property, which is just a number. This property also decides on on long the trail lasts.

Changing LifeTime from 1 to 5

The ColorSequence page gives you three methods of creating it and the trail's color will change by passing the return value.

--one example
Trail.Color=ColorSequence.new ( color1, color2 )
0
Thanks Lie_Star -11 — 4y
0
@Lie_Star If you answer helped you make sure to accept it :p DanzLua 2879 — 4y
0
Sure Lie_Star -11 — 4y
Ad

Answer this question