PrismaticRealms
Member
40% FOR A LIMITED TIME
Available on the YoYo Games Marketplace and on Itch.io.
Requires GameMaker Studio 2 v2.3 and up.
PRAction is a GameMaker Studio 2 (GMS) module created by Prismatic Realms, Inc. It is an action/animation system that is similar to a tweening system, but is so much more than that. At its very basic level, PRAction allows you to modify an object's properties from one value to another over time, but it takes this concept several steps further. The idea is that you create "action" objects, each of which represent a specific object property changing from one value to another over a given amount of time. Then you can package any number of these actions together into complex groups and sequences that, when played by a object, will be executed like an action script from a movie. Actions, and groups of actions, can be played in a loop and repeated any number of times. Furthermore, actions are reusable. So when you create an action, you can keep it around to use over and over on any number of your game objects.
Any of your object's properties can be animated in this way. PRAction gives you many functions that allow you to animate their x/y positions, alpha value, rotation angle, scaling factors and much more. You can also animate your object's colour properties to transition from one colour to another smoothly. On top of that, you can also animate any of your own custom variables that you've added to your objects.
It doesn't end there. Properties can be animated "absolutely", meaning that you specify the "to" value that the property will animate to from it's current value. But you can also animate properties "relatively" so that rather than animating those properties TO any given value, you animate they BY a given value instead. PRAction includes a bunch of animation curve functions, also known as easing functions, that will animate those properties using a variety of different smoothing effects.
And if that isn't enough, there's more! Actions don't only have to involve modifying properties over time. There is an action that allows you to insert a "wait" command into your "movie script" to add pauses in between your actions. Actions can also be one-shot instant triggers! Such as calling a function, object method or running a user event, or playing a sound effect, destroying an object, running a room, changing an object's draw layer, or even instructing another object's actions to start playing at key points in your action sequence.
As a bonus, this extension includes several common and useful compound actions, ready to use in your project. These include floating, shaking, blinking, flashing, flipping, wobbling and more. Use them as is, or as examples to create your own compound actions.
PRAction will save you tons of time when coding your animations. There is nothing to it: First, you define the actions and then you instruct an object to play those actions. That's it! There is no messing about with alarms, or tracking frame counts or anything else. Just play it, and then forget it.
The sky's the limit with this extension. Animate anything to your heart's desire.
This package contains a parent object that implements PRAction that your objects can derive from as well as several script assets that contain the functions you use to create actions and animate your object properties. The package also contains documentation on how to use the module and example code that you can learn from.
Friendly support is just an email away and you can expect a quick turn-around to answer your questions and resolve issues. As always, comments and suggestions are welcome!
The included examples feature artwork by Penusbmic (used with permission.)
Features:
- More than just a set of tweening functions, this is a fully featured action system.
- Create actions to animate any object properties, over time. Including colour and custom properties.
- Actions are reusable and your objects can play many actions simultaneously.
- Package actions together into groups to create complex action sequences, like in the movies.
- Loop your actions as many times as needed, or forever.
- Animate your object properties absolutely or relatively.
- Includes 25 easing functions.
- Insert "instant" actions into your action sequences that trigger other things to happen like calling a function, playing a sound or playing another action.
- Includes several common ready-made actions to use in your project like floating, flipping and flashing.
- Forget dealing with alarms, frame tracking variables, if's and while loops to determine when to start and stop your animations. Create and play an action instead. Done.
- Animate anything you can think of. Save time and greatly reduce your coding effort.
- All professionally written in GML.
- Includes examples and documentation within the package.
- Fast and friendly support via email if and when you need it.
Last edited: