This is quite a lot of code for something so simple:
go.property("dummy", 0)
...
go.animate("#", "dummy", go.PLAYBACK_ONCE_FORWARD, 0, go.EASING_LINEAR, 5, 0, my_func)
It would be nice to have something like this:
(And of course, a go.cancel_invoke, just in case)
6 Likes
I agree. It feels a bit like a workaround when you have to animate a dummy property to simulate a delayed function invocation. One idea is to build your own timer logic in a module and use that to to trigger delayed function calls. I have an example of a timer module that you can use: https://gist.github.com/britzl/0f6291990b0b11f92775
4 Likes
Yes, agreed. This has been requested a few times before and is in our backlog.
4 Likes