trigger random animations?

astrom0astrom0 Member Posts: 40
edited November -1 in Working with GS (Mac)
Is there any way to trigger a animation at random time?
Not looping, for example: blinking eyes on main character?

Comments

  • AppsRacKAppsRacK Member Posts: 346
    create self attribute
    ->timer = real

    on Actor
    RULE
    if self.time = self.timer+random(2,6) (depends on how frequent you want)
    ->TIMER
    -->for 1 sec (depends to your animation and fps)
    ---->Animate (place your image here)

    hope it helps :)
  • GrubGamesGrubGames Member Posts: 77
    nice work drahc
  • AppsRacKAppsRacK Member Posts: 346
    bmg9949 said:
    nice work drahc

    Thanks.
  • astrom0astrom0 Member Posts: 40
    Thanks, works awesome =D
Sign In or Register to comment.