How to make a random animation play for x amount of seconds
![0oHamzaho0](https://images.v-cdn.net/banned_large.png)
Hi guys,
I've just started making my iPhone app, ran into a small wall though.
I want to make my animation randomly play for about 5 seconds, then the next animation to randomly play.
How would I do this?
I've just started making my iPhone app, ran into a small wall though.
I want to make my animation randomly play for about 5 seconds, then the next animation to randomly play.
How would I do this?
Comments
there is a animation behaviour so try it out. i have not used it yet though.
add timer every x sec, animate...
So, in your example, you would have maybe -(1) the waste bin rocking, (2) the paper ball bouncing, (3) the paper ball disappearing into the bin. Work out each one in turn, then combine them to make your final gameplay.
I'm on windows (hopefully soon to be a mac person) so I'm using gamesalad beta for windows