.
4 posts • Page 1 of 1
Re: if statment in the color field for spawned objects
add this to your scene.addCircle()
Or is the problem a different one?
[edit]
oh ok... just tested it out. now i know what your problem is. so forget about this post.
but that's weird... i try to do something else if i have an idea.
- Code: Select all
color := {{sim.time == 10} ? {[0, 0, 1, 1]} : {[0, 0, 0, 1]}}
Or is the problem a different one?
[edit]
oh ok... just tested it out. now i know what your problem is. so forget about this post.
but that's weird... i try to do something else if i have an idea.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: if statment in the color field for spawned objects
it doesnt automatically correct it. if sim.time is over 10 when it spawns, its gonna be black, no exceptions (unless the code is wrong)
if its still doing this when sim.tim ISNT over 10, something wrong then
if its still doing this when sim.tim ISNT over 10, something wrong then
TheWinkits wrote:They both looks of cuking amazing
-
Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: if statment in the color field for spawned objects
i know what's wrong...
the code is working and it changes the color after 10 seconds, that's no problem BUT that only happens to the latest spawned circle!
so if you spawn 5 circles and now wait the 5. circle will change its color. the other ones stay at black so this seems to be a bug. it's really worth reporting it.
the code is working and it changes the color after 10 seconds, that's no problem BUT that only happens to the latest spawned circle!
so if you spawn 5 circles and now wait the 5. circle will change its color. the other ones stay at black so this seems to be a bug. it's really worth reporting it.
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests