Time script that I'm green on it

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Time script that I'm green on it

Postby vaidas369 » Wed Oct 25, 2017 11:24 pm

So I have an object. And I activate it to show up like that
{
scene.my.x > 1 ? a : b
}
Simplest thing possible, but I want that to work only for a limited time only. Explanation:
When scene.my.x becomes more then 1 and a changes to b I want that even if scene.my.x is still more then 1 then it would work for 15 milliseconds and then come back to b again.
This might be complex, and I don't know any code of how to use it what includes sim.time. I'm clueless about it.
Can someone help me with that?
vaidas369
 
Posts: 24
Joined: Thu Jan 30, 2014 8:51 pm

Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests

cron