Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Need Help about creating a sort of slower/faster animation button

  • #1, by nerd 7 years ago Zitieren
    I got this nice code:
    Animations["anim1"].AnimationPause = 100

    Now instead of that "100" a need to put a value from "set value", I've attached a screenshot to clearify better. How I do that?

  • #2, by sebastian 7 years ago Zitieren
    this should do the trick :

    Animations["anim1"].AnimationPause = Values["name_of_VS_value"].Int
    
  • #3, by nerd 7 years ago Zitieren
    this should do the trick :

    Animations["anim1"].AnimationPause = Values["name_of_VS_value"].Int
    
    It works. Thank you very much.

  • #4, by afrlme 7 years ago Zitieren
    You should wrap it in an if query so that the value is only incremented/decremented if the value if less than max or greater than min.
  • #5, by nerd 7 years ago Zitieren
    You should wrap it in an if query so that the value is only incremented/decremented if the value if less than max or greater than min.

    I'll put 3 buttons, slower, faster, and normal. The player will be able to play as slow as he want. But thank you anyway
  • #6, by afrlme 7 years ago Zitieren
    fastest is 16ms (60fps), guess for slow you can do up to whatever you want.