Hi there, I’m looking to get into parallax mapping and I’ve decided to use Galv’s plugin for this endeavor. I’ve been playing around with it and getting the hang of it, but one thing I’m wondering about is if I can do minor animations like opening doors or swaying plants with this plugin. I know I can use other methods like Yanfly's doodads for plants or the base map editor for a door, but I'm curious to know if this 'frame by frame' type of animation is possible with Galv's. Thank you!
MZ How to make small animations (opening doors, swaying flowers, etc) in parallax mapping with Galv's layer graphics plugins
Javascript/Plugin SupportHello!
I can tell you from experience that the best method for looping animated things like grass flowing in the wind, or a door opening...all of those are best done when you turn those specific things into characters, and just have Stepping Checkbox checked on those character Events (at the bottom).
Not only does doing it this way prevent crashes with multiple parallaxes and what not, but it also allows you flexibility by copy/pasting the moving sprites all over the map.
Especially for Doors opening, you pretty much need to Event those things to happen.
Making a custom image into a "character" file requires a lot of specific formatting, but it can be done quite easily once you get the hang of knowing when to use your ! and $ signs, as well as the scale of the particular image you want to use.
Really, the way you create custom character files, and how you make a parallax map are 2 completely different tasks, but if you envision it enough and play around, I would say it can look quite good if you manage to make the parallax maps and character files blend in smoothly.
I can tell you from experience that the best method for looping animated things like grass flowing in the wind, or a door opening...all of those are best done when you turn those specific things into characters, and just have Stepping Checkbox checked on those character Events (at the bottom).
Not only does doing it this way prevent crashes with multiple parallaxes and what not, but it also allows you flexibility by copy/pasting the moving sprites all over the map.
Especially for Doors opening, you pretty much need to Event those things to happen.
Making a custom image into a "character" file requires a lot of specific formatting, but it can be done quite easily once you get the hang of knowing when to use your ! and $ signs, as well as the scale of the particular image you want to use.
Really, the way you create custom character files, and how you make a parallax map are 2 completely different tasks, but if you envision it enough and play around, I would say it can look quite good if you manage to make the parallax maps and character files blend in smoothly.
Thanks for your response! Unfortunately I'm still very new at this and I'm unsure of what you mean by turning the objects into characters, but you've given me a place to start with this answer. If possible, do you know any tutorials or posts that go into depth about this topic?
Yeah sure, here's one Andar made, though I can give you a brief summary as well:
How to create your own templates (any sprite or battler sheet)
Time and time again people who want to create their own sprites are asking for pre-made empty/framed templates because they can't work without them. And they don't even understand how limiting that is. Templates are crutches - bad crutches to be precise, because if you need a premade template...
forums.rpgmakerweb.com
Long story short, a large majority of visual things in the game are broken down into what's called "Cells", including character files.
A cell is basically the confinement of a singular sprite. For us MV users, that means one "square" is 48x48 in pixels. Hence why all of your default sprites in the "characters" folder are normally contained within the 48x48 square, like that chibi look.
The thing is however, that doesn't mean sprites have to be within a cell of dimensions 48x48, because while that is the default size, the engine will work with any sized cell (square) as long as the character file format is consistent.
Knowing this, you can turn anything you want into a "character", as long as you make a spritesheet such that there are 3 cells across, by 4 cells in height.
(Total of 12 cells).
XXX (Down)
XXX (Left)
XXX (Right)
XXX (Up)
This is because RPG Maker MV uses a character file format where a "character" has to face down, face left, face right, and face up. (That's 4 rows, with each row containing 3 sprites for a "walking" animation).
For your instance, you want to make characters that have the Stepping Animation turned on so the "character" (flowers) are constantly moving in place (cycling between the walking animation, which you would really just make the flowers look like they're flowing in the breeze)
One example is, if you wanted a larger sprite, such as a door opening...lets say a singular door sprite you make happens to be 48 in width by 96 in height . (48x96)
That means the dimensions of your door sprite will be in a 48x96 "cell". So just create that set of cells with those new dimensions such that it's the same format as I stated above (Up left right down).
If that doesn't make sense, the article I linked by Andar goes way more in-depth, but that's the basic idea.
I played around with some base assets after this, and I got it to work! Albeit with a torch instead of a flower, but now I get what you were trying to show me haha. This will be super useful for certain animations, thank you so much! Much more efficient than trying to string various parallax layers together lmao.
Hey no problem! Always happy to help.
In general, you should try to avoid parallaxing anything other than the map surface itself, since the more parallaxes you have, the more risk you run of exposing lag to players who use slower computers to play your game.
I personally use GALV's layers for my parallax maps, so I just save what I want to the game maps themselves, but its best to try and use as little as possible to avoid that lag.
Though it seems you got this answered, to answer the original question, in the event it just has to be a parallax:
Create a parallel event.
Set the starting image (the first frame of the animation) as you or normally with Galv's player graphics.
Set a wait timer of a few frames (the less frames, the faster the animation will play) I think I use around 10 frames of wait time.
Then set the next image (second frame of the animation) just like before, then use the refresh layer graphics plugin command.
Add a wait of the same length of time.
Add the third image
Refresh layer graphics
Wait
Repeat these steps until you have assigned all of the frames of animation.
Make sure to end with the wait timer!
After that, you're done. Since it's a parallel event it will always run in the background, and without a distinct "end event" command either through a switch/variable/erase command/end process command, the event will loop indefinitely.
That said, while this isn't the most taxing on game resources to run thanks to the large number of wait timers between frames, it's still not ideal to run multiple parallel process at the same time. Due to engine limitations (not hardware limitations) this can quickly result in poor frame times and low fps. Make sure to use this method on small maps that have fewer things going on.
For example, if you have a cutscene that takes place on a romantic cliff edge over looking the sea, so you want animated ocean wave going off into the horizon, this method would be fine so long as that cliff edge is on its own map specifically for this cutscene.
P. S.
On my phone. Please forgive the lack of screen shots and any strange typos as the result of my phones autocorrect and my own sloppy typing.
Create a parallel event.
Set the starting image (the first frame of the animation) as you or normally with Galv's player graphics.
Set a wait timer of a few frames (the less frames, the faster the animation will play) I think I use around 10 frames of wait time.
Then set the next image (second frame of the animation) just like before, then use the refresh layer graphics plugin command.
Add a wait of the same length of time.
Add the third image
Refresh layer graphics
Wait
Repeat these steps until you have assigned all of the frames of animation.
Make sure to end with the wait timer!
After that, you're done. Since it's a parallel event it will always run in the background, and without a distinct "end event" command either through a switch/variable/erase command/end process command, the event will loop indefinitely.
That said, while this isn't the most taxing on game resources to run thanks to the large number of wait timers between frames, it's still not ideal to run multiple parallel process at the same time. Due to engine limitations (not hardware limitations) this can quickly result in poor frame times and low fps. Make sure to use this method on small maps that have fewer things going on.
For example, if you have a cutscene that takes place on a romantic cliff edge over looking the sea, so you want animated ocean wave going off into the horizon, this method would be fine so long as that cliff edge is on its own map specifically for this cutscene.
P. S.
On my phone. Please forgive the lack of screen shots and any strange typos as the result of my phones autocorrect and my own sloppy typing.
Hi there, thanks for this reply! I figured that the secret was using events and the refresh command, I just wasn't sure about the specifics. Thanks for explaining it in detail!
Ultimately, I did some additional research on RAM usage, and you guys all have a point about parallax maps being a drain on resources. As things stand right now, my best bet would be to use parallax maps for 'big' animations like water, rain, and fog (assuming I can't find a plugin for these to begin with); Yanfly/Visustella doodads for simple looping animations in the background; and the base map editor for event based animations like opening doors and chests. Kind of tricky, but I'm hoping it'll at least be efficient.