Quick Question...Can you control the animation Speed?

synthesissynthesis Member Posts: 1,693
edited November -1 in Working with GS (Mac)
Is there a way to dynamically adjust the animation speed/rate of an Animate Behavior based on a custom condition...similar to a speed control in a Change Velocity behavior?

Thanks in advance.

Comments

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    I think the only way you could do it is with lots of work arounds using attributes.

    e.g. Attributes - Normal speed and Fast

    When conditions are met set normal or fast to true

    On actor

    All
    If normal = true and fast = false
    Animate @ 10 fps

    All
    If normal = fasle and fast = true
    Animate @ 20 fps

    Thats the only way i can think of having any control over it
  • synthesissynthesis Member Posts: 1,693
    Thanks beef...
    That's what I thought....I was hoping there was a way to actually influence the fps value dynamically...such as setting it equal to half the actor's velocity.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Yeh that would be handy in a lot of situations, add it to the GS wish list ;)
  • QuinnZoneStudiosQuinnZoneStudios Member Posts: 452
    That's an interesting idea.
    Otherwise I guess you could set up several differently sped animation rules and have it select the closest one based upon your actor velocity? Kind of a limited cheat but it might get you part way.
    I guess that's similar to what Beefy said but Beefy's might be more practical.
  • synthesissynthesis Member Posts: 1,693
    Yes MikeQ (and Beefy)...
    That's what I'm doing...

    I set a random "actorAggression" value.
    Then set the actor's speed attribute to a multiple of that value.

    Then I set up a rule sequence to assign a different animations (different FPS speeds that is...same animation image sequence) to the different ranges of actor speeds. I'm using about 5 different animation sets.

    This allows the animation to "walk/run" at different rates depending on the speed of the actor moving across the screen. Hopefully it will make it look a little more realistic and less like they are "ice skating" at the higher speeds.
  • QuinnZoneStudiosQuinnZoneStudios Member Posts: 452
    Pretty slick. Can't wait to see it all.

    Great development animation-wise too!
Sign In or Register to comment.