I thought what I'd do was
- May 15, 2013
- Reaction score
- First Language
- Primarily Uses
This plugin allows you to set animation curves (so-called easing functions) to be used with Move Picture and Tint Picture events.
- Easy Plugin Commands that only need to be placed before a Move Picture or Tint Picture event to affect them. Multiple can be chained. See "How to use"
- 30 easing curve functions, including Elastic, Bounce, Quad and Exponential
- Animated in-game (in test mode) preview of all easing functions. Just press F11, or configure a different hotkey in the plugin's settings.
- Configurable Plugin Command key; if you'd rather type "SmoothCriminal" than "AnimationCurve" in your Plugin Commands, you can configure that in the plugin's settings.
More and better visual examples of how this can be used coming soon, as I'm using this actively in my own game.
How to use
Add one or more Plugin Commands before a Move Picture or Tint Picture event, in the following format:
"QuadOut" is one of the 30 available animation curves, and the x (optional) is the property in the Move Picture call to affect with this curve. If no property is specified, it defaults to using the curve on all properties (x, y, scale width, scale height, and opacity)
The Plugin Commands must be placed before the Move Picture or Tint Picture events that they are to affect. They do not have to be placed within the same event window, however, so you can put them in Common Events if you wish.
There is also a useful in-game preview of how all the different animation curves work. By default, pressing F11 will open this view, which looks like this:
Just hit F11 again to close it. You can configure the hotkey in the plugin's settings. It will only work in test mode, so no need to worry about it affecting your published game.
See the Help section of the plugin for more information.
Grab the latest release here: TDDP_AnimationCurves.js (compressed version)
The compressed version removes all unnecessary comments and shaves off 15KB of the file-size, down from 28KB.
Credit and Thanks
- Tor Damian Design / Galenmereth
- hiddenone for testing
- McGinley Smith for the original easing functions
Released under an MIT License (free for commercial use)