Anyway to make any object or anything change color very fast

About advanced scenes, and the Thyme scripting language used in Algodoo.

Anyway to make any object or anything change color very fast

Postby decepticon » Sun Aug 13, 2017 10:46 pm

i've seen it in some scenes but i never knew how to do it, its like a rainbow, the only thing i know how to do script wise is interia multiplier and onhitbylaser then it spawns a circle and it shoots (The circle has a laser on it too so it's kind of like a gun)

Could I have a script ? thanks guys
decepticon
 
Posts: 21
Joined: Sat Dec 17, 2016 12:20 pm

Re: Anyway to make any object or anything change color very fast

Postby FRA32 » Fri Oct 27, 2017 7:27 pm

pick one of the three lines that I put in the poststep. Dont try all at once:
Poststep : (e)=>{
colorhsva = colorhsva + [2,0,0,0];
color = [rand.uniform01,rand.uniform01,rand.uniform01,1];
colorhsva = [360*rand.uniform01,1,1,1];
}
FRA32
 
Posts: 227
Joined: Wed Dec 03, 2014 9:51 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 2 guests

cron