Hi, RpT!
I am not sure if I understood what you meant but maybe something like this is what you are looking for.
- CODE: SELECT ALL
color =
{
scene.my.blink ? {
(math.toint(sim.tick / 60) % 2 == 0) ? {
[1, 0.5, 0, 1.0]
} : {
[0.25, 0.125, 0, 1]
}
} : {
[0.25, 0.125, 0, 1]
}
}
The number that divides sim.tick determines the blinking frequency. There is 60 ticks per second, depending on sim.frequency.
No hay comentarios:
Publicar un comentario