Animated Pictures Plugin

Status
Not open for further replies.

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
This is a RPG Maker MV plugin that gives functionality to Show Picture events to display animated pictures. Animated pictures are shown in a sprite sheet format. There are looping controls and speed controls that can be used with these animated pictures.

Plugin Parameters


Loop by Default: Animated pictures will loop back to beginning by default once it reaches the last frame.



Wait Frames Default: Default number of frames to wait before moving to next picture cell. The lower the number, the faster it goes (1 is the fastest). The higher the number, the slower it goes.

Instructions
Save your animated picture into your game project's img/pictures folder. The filename must be named with the following format:

filename[HxV]
Replace H in the filename with the number of horizontal cells it has. Replace Vin the filename with the number of vertical cells it has. The number of total cells it has available is equal the multiplicative product of the horizontal and vertical cells.

For example:

"Parrot[3x2]" will have 3 horizontal cells and 2 vertical cells. This means
there are a total of 6 cells that will be used for this animated picture.

Animations will be played from left to right, then up to down so please arrange them as such. For example, 4x5 will play like this:

1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
Keep this in mind as you format your animated pictures.

For a sample picture to try out, use this:



Save it as Parrot[3x2].png in your img/pictures folder and use a Show Picture to display it in-game.

Plugin Commands
If you want to change the settings of specific pictures like loop or speed, please use these plugin commands to change them:

AnimatedPicture id NoLoop
- Replace id with the ID of the selected picture. The selected picture will not loop after this plugin command takes effect.
AnimatedPicture id Loop
- Replace id with the ID of the selected picture. The selected picture will loop after this plugin command takes effect.
AnimatedPicture id Speed x
- Replace id with the ID of the selected picture. Replace x with the number of frames to wait in between animated cells. The higher the number, the faster the picture will animate. The lower the number, the slower the picture will animate. The lowest the speed can go is 1.
AnimatedPicture id Reset
- Replace id with the ID of the selected picture. This will reset the loop and speed settings for that picture to whatever the value is in the plugin parameters set for default.

Good Practices
The plugin will perform at near 60 FPS if you follow the 5 practices below:

  1. Use animated pictures sparingly if possible. RPG Maker MV's cache has a limited size to it, which means the more animated pictures you use, the faster it will fill up. And the faster it fills up, the more it needs to be emptied to allow other assets in your game to load at all.
  2. If you do use animated pictures, trim down as much empty space as possible and keep picture cells to a minimum size to reduce bloating the cache.
  3. If it is practical, make your sprite sheet cells work towards a power of 2 (ie: sizes of 32x32, 64x64, 128x128, 256x256, etc). Bitmaps render best when it works in this cell range. This is not necessary, but it is a thing to keep in mind.
  4. Limit the amount of colors used in the animated picture to reduce the filesize of the image and reduce the strain on the cache. Use more flat colors instead of gradients. These work better for the engine.
  5. When you are done using the animated picture, use the Erase Picture command to clear the picture from use. This will stop the animation frame calculating and reduce strain on your game.
WARNING!!!
This plugin is made for RPG Maker MV versions 1.6.1 and below. If you update RPG Maker MV past that and this plugin breaks, I am NOT responsible for it.

Terms of Use
1. These plugins may be used in free or commercial games.

2. 'Fallen Angel Olivia' must be given credit in your games.

3. You are allowed to edit the code.

4. Do NOT change the filename, parameters, and information of the plugin.

5. You are NOT allowed to redistribute these Plugins.

6. You may NOT take code for your own released Plugins without credit.
 

Kraden96

Friendly Fox
Veteran
Joined
Feb 5, 2016
Messages
42
Reaction score
11
First Language
English
Primarily Uses
RMMV
This. This is priceless.
Excellent plugin, amazing as always.
 

sefeloth

Veteran
Veteran
Joined
Oct 24, 2016
Messages
36
Reaction score
5
First Language
english
Primarily Uses
nice plugin and rare parrot
 

Coidia3

Villager
Member
Joined
May 1, 2018
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RMMV
what is max frames in one row?
can i use a lot frames?
 

Izimori Anahuyu

Villager
Member
Joined
Feb 3, 2013
Messages
24
Reaction score
2
First Language
Canadian
Primarily Uses
RMMV
I want to mention that the script is not free.
Whether your project is commercial or not; at the time of me posting this, the script has a fixed cost of ≈$3USD.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Yes, it used to, but it's not free anymore. Can you please update the ToU, Archeia?
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top