Animation speed accelerates based on game speed?

chaleychaley Member, PRO Posts: 226
edited November -1 in Working with GS (Mac)
Hey all... I have a game where the speed of the camera is based on distance traveled /time. It's the standard "camera moves faster the longer you play." I'm looking to have my hero' s run cycle acceleration to roughhly match the camera acceleration. It doesn't have to be an exact match... It just needs to get faster as the game progresses. Anyone know how to do this?

Comments

  • perfectanswerperfectanswer PRO Posts: 121
    You can't trigger the animation speed on the fly.
    But..
    You can work with different animations.
    eg. Your standard Animation has 20 frames.
    SlowMo. Use another animation behavior with the same animation images, but put every image eg. twice in the animation behavior.

    Normal: pic1,pic2,pic3,pic4,pic5
    Slomo: pic1,pic1,pic2, pic2,pic3,pic3
    faster:pic1,pic3,pic5

    Build around this a rule if the camera trigger a attribute for zoom out or zoom in.
    Alternativ use the same rule construct for 3 animation of same picture, but with different frame rates.
  • old_kipperold_kipper Member Posts: 1,420
    You can control animation speed on the fly. Search for animation controller demo in the editor search. It works of course as it is by the mighty FMG
  • perfectanswerperfectanswer PRO Posts: 121
    Sorry, the example I did not know, but an ingenious example to make it with changeImage.
  • chaleychaley Member, PRO Posts: 226
    I found the animation controller template, but there were a lot of extra attributes and controllers in there and it wasn't clear to me which parts were necessary for my needs vs the specific controls for that template. I was hoping there would be a clear and more consise demo.

    It's one of those things where I don't get much time already to work on my game, so I want to make sure my time is maximized. I can picture burning many frustrating hours trying to decode what is happening in that template. ...and in the end, there might be a much better, and much cleaner way.
Sign In or Register to comment.