Animate afer N second. It doesn't work!

v00d0v00d0 Member Posts: 143
edited October 2012 in Working with GS (Mac)
can anyone explain me why this thing doesn't work???

what i did:

1) i created an integer, let's call it: TimeVariable.
2) i used change attribute behavior where i generate a random number between 5 and 10 and i assign it to TimeVariable.
3) then anime the actor every TimeVariable

http://imageshack.us/a/img839/4243/schermata20121022alle01.png



Thanks a lot for ur support.

Comments

  • gamesfuagamesfua Member Posts: 723
    I always try to help but keep in mind i'm fairly new. I'm sure someone else can help out better. In the meantime couldn't you just get rid of the change attribute and simply put in the timer window of EVERY- random(5,10).
    Anyways i've had these same problems. Try RUN TO COMPLETION checked off.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
  • gamesfuagamesfua Member Posts: 723
    Yes hehe that's what i meant by checked off. I need to get better with the lingo. I should have just said CHECK RUN TO COMPLETION. Thanks tenrdrmer!
  • gamesfuagamesfua Member Posts: 723
    And why is that tenrdrmer? Is it because it ensures the animation triggers? I never got why.
  • v00d0v00d0 Member Posts: 143
    thanks :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    It tell the code to completely run though in stead of it beginning and then stoping since it can only fire the code every x seconds
    Also you may need to actually put the animate behavior inside a second time that is set to run for x number of seconds as well. Run to completion may just trigger that animate to never stop.
Sign In or Register to comment.