Joined
Apr 10, 2016
Messages
4
Reaction score
7
First Language
English
Primarily Uses
AnimatePicture v1.1
By TSK




Introduction
This plug-in extends the basic picture functionality by allowing the display of animated pictures.

Features
All standard picture display parameters are supported. New parameters include setting the animated picture to loop or to keep the last animation frame on screen after the animation.

What it looks like
This plug-in is used in this showcase video to animate the dustclouds and impact explosion for the summon:










How to Use
Drop the .js file into your plugins folder. This script requires no parameters.


An animation should be stored in your picture folder as separate frames following the name scheme of baseNamexxxx, where xxxx is a number like "0001". This number identifies which animation frame that image represents. So a full animation of 4 frames would be stored as: animation0001, animation0002, animation0003, animation0004. This of course limits the maximum amount of frames for a single animation to 9999, which should be plenty.


The plugin command syntax is like this:


animatePicture <imageNumber> <imageBaseName> <startFrame> <endFrame> <origin> <x> <y> <scaleX> <scaleY> <opacity> <blendmode> <eraseWhenDone> <loop>


The parameters new to this command are:


<startFrame>: The number for the first frame of the animation


<endFrame>: The number for the last frame of the animation


<eraseWhenDone>: If set to 1 the animation will be cleared when done playing, otherwise the last frame remains on screen


<loop>: If set to 1 the animation loops forever, this overrides <eraseWhenDone>

<fpf>: Number of engine frames for each animation frames. E.g. the number of frames the individual pictures of the animation stay on screen.

A full example looks like this:


animatePicture 64 earthExplosion 0 30 0 -180 -60 300 300 255 0 1 0 1




Pictures created using this command can be erased like regular pictures: erasePicture <imageNumber>


Credit


- TSK


Terms


- free for use in commercial games


Notes


I suppose this counts as my introduction to the community, hi all!


Please let me know if you encounter any issues.



Plugin
 

Attachments

  • TSK_AnimatePicture.js
    3.7 KB · Views: 10
Last edited:

Harken_W

Veteran
Veteran
Joined
Oct 13, 2015
Messages
81
Reaction score
23
First Language
English
Primarily Uses
N/A
Exactly what I need! Thanks! :)
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,475
First Language
French
Primarily Uses
RMMV
not work for me 


Nothing appen ?!!!
 

cekobico

Veteran
Veteran
Joined
May 8, 2015
Messages
353
Reaction score
160
First Language
Indonesian
Primarily Uses
Is it possible for you to make a video tutorial on how to set it up? 
 

pyrogoth

Veteran
Veteran
Joined
May 2, 2013
Messages
39
Reaction score
3
First Language
English
Primarily Uses
Hello! Is it possible to modify the script to find pictures from img/pictures/(new folder) ? Just to make organisation of many image files easier :') Thank you very much for this plugin!
 

Latest Threads

Latest Profile Posts

x5uDBb.png


Big update incoming tomorrow! After some streamer feedback I am adding and recreating multiple facets of the game! Expect:

  • New Challenge Modes!
  • Completely revamped stats and attack types!
  • Additional positioning options!
  • More hidden easter eggs, will you find them??
  • Additional balancing!
Quick little one day make. Having mimosas on a boat tomorrow but wanted to feel productive today. Ask me about my sunburn later.

GABposterwork.png

Working on a new poster.
I just posted the first devlog for The Hidden Art of Innkeeping: https://seaphoenix.itch.io/hiddenart!

BeachLogo.png
Might start playing some rpg maker games and uploading the games on youtube. Realistically they're not going to be for views. Just to give anyone some feedback on any games they're working on. So if you'd like me to play and review your game just reply them down here. And I'll upload them on Rpg4MGames.

Forum statistics

Threads
131,617
Messages
1,221,622
Members
173,346
Latest member
Hereticuss
Top