How to make a random animation play for x amount of seconds

0oHamzaho00oHamzaho0 Member Posts: 14
edited August 2012 in Working with GS (Mac)
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?

Comments

  • BoyGeniusStudiosBoyGeniusStudios Member Posts: 92
    Attribute timer for 5 seconds.....
  • 0oHamzaho00oHamzaho0 Member Posts: 14
    Attribute timer for 5 seconds.....
    thanks, also I'm creating a paper toss style of game how do I make the effect that the actor goes into the bin like on paper toss. Such as bouncing off the edges and it dissappearing in the bin
  • 0oHamzaho00oHamzaho0 Member Posts: 14
    Also now I can make the animation play for x seconds, how do I make the animation randomly spawn?
  • PBEmpirePBEmpire Member Posts: 676
    lol seriously?? i guess u should start with something easier. i started ambitious but i had to change my gameplan as i was not fully adapted to the game engine. so i am creating a simple game now.
    there is a animation behaviour so try it out. i have not used it yet though.
    add timer every x sec, animate...
  • petercoupepetercoupe Member Posts: 94
    When I'm producing complex actions I start by breaking everything down to small parts and work on each of these individually.
    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.
  • 0oHamzaho00oHamzaho0 Member Posts: 14
    lol seriously?? i guess u should start with something easier. i started ambitious but i had to change my gameplan as i was not fully adapted to the game engine. so i am creating a simple game now.
    there is a animation behaviour so try it out. i have not used it yet though.
    add timer every x sec, animate...
    haha thanks, yeah it's my simplest of app ideas! Is xcode 4 easier for complex apps than GameSalad?
    I'm on windows (hopefully soon to be a mac person) so I'm using gamesalad beta for windows
Sign In or Register to comment.