Skip to content

RenpyRemix/extra-animated-value

Repository files navigation

Extra Animated Value

Note: All you really need are the files in The game folder. Just a few sample images and a small script file. They can be dropped into a new or existing project and a label called to view an example (details in the .rpy file).

Alternatively, just clone the lot as a zip from The Repository Main Page

Extending AnimatedValue for Bars.

Image of ExtraAnimatedValue Bars

Note: This gif (limited to 256 colours) is not as smooth or pretty as an in-game bar would be.

As you may or may not know, AnimatedValue is pretty limited in what it allows. Internally it just holds a value and an old value then uses a linear progression to move from one to the other over a set duration that is independent of the size of the change.

This extends that fairly limited class and allows:

  • Querying (and thus display) of the current value as it changes.
  • Facility to use a warper to control the movement curve.
  • Ability to set a duration for the full range to change and use times as proportions of that for non full changes.
  • Dynamic Text methods to easily display values taken from the class.
  • A Displayable designed to help make bar images more dynamic.

Important Reading:

The overview of the system is more fully explained in Explain ExtraAnimatedValue

The additional image displayable is explained in Explain ValueImage

Support me on Patreon

Please note:

The way that some parts of this approach work might not be suitable for complete beginners. As such it will likely require some knowledge of Ren'Py in order to extend it to your particular needs.

Though I have tried to explain it as simply as possible, I will not be available to help extend it unless under a paid contract. Basically, if you want it to do more, you are expected to know enough Ren'Py to handle that yourself (or consider paying someone)

About

Extending AnimatedValue for Bars

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages