Quick question regarding Movement Route, animations and frames

Hey there,

I've been in need for a waving flag for a project I'm working on. We thought the best solution would be to use a character sprite and have it move from there, like other objects. However, we found that 3 frames weren't fluid enough and thus decided to use most of the character set for the animation. In the end, we ended up with 8 frames, as follow. (Note: 9th frame is the same as 1rst, so it's 8 different frames)

Spoiler
Flag 3.png


In order to follow the sequence, I believe a ''set movement route'' is the best solution, but I can't make it work. I've tried the moves, the turn, but nothing is working. I'm all willing to change the order of the tiles because it seems to come back in the center before every turn but I'm sure there's a way to make this animation work with route as it is.

Then a Discord member (thanks Shen!) suggested something else; use Event pages and run the flag as an event in Parallel Process. Now the flag is animated, but there's no way to interact with it as it's a Parallel process. You couldn't click to check what the flag is, for instance, but the animation is beautiful. Here is how Shen did it.

Spoiler
Event.PNG

I'm certain there is an other way to actually use the event. Maybe as an animation showing up on an event, if the movement route doesn't work?

If we can manage to make this work I guess we'll make public the colored flag, the animation and the process in a tutorial or something. But it has to work first.

Thanks for the help!
Oh we can make it work for sure 😎

What license would this be under when you make it public?
  • For the code, A MIT License would be great
  • For the art work, any reasonable license from Creative Commons would be great (that allows commercial use).
...are these licenses really necessary? Couldn't I, I mean... just post the flag and the screenshot on how we made it work? And let everyone use it from there without questions or demands or anything? I mean all I'm doing is animating a flag and try to put 2-3 lines of codes together so it can move on a software I didn't create lol
Yes, you can do without licenses for this forum.

For more serious use (like if anyone wanted to use this in a commercial work), they would want a license.

The MIT License is exactly the license you talk about "without questions or demands or anything". It's only condition is:

"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."
​
If you want to share something fun you made, quickly, then no license needed.

If you want it to survive for a long time, say years, a license really helps.

Let's say someone is putting together a library of 100+ different animated objects.
  • They are going to invest 200+ hours in this.
  • Let's say they offer support & use this partially to make money on the side of their regular job.
  • They will carefully check licensing & only include animated objects that they have a license for (so as not to cause a problem with their project & to safely protect their 200+ hours of invested time)
  • Thus, whether your animated flags are included or not in this future project, will be determined, partially, by your license.
Hmm. I don't really get it but let's have this discussion later for when the problem is fixed.

Any idea on how to fix that thing?
if you're going to use more than 3 frames for all your sprites, just design a new sprite!
I mean, ....
Spoiler
$skeletonknight2_default.jpg

¯\_ツ_/¯
am I rite?

there's even blank spaces in there, and multiple poses.... with the right code, you'll make it work from the very foundation.
and the foundation is, the sprite is a copy of an image, cropped down to a certain size, at certain coordinates.
all of which, you can control.
...there's even blank spaces in there, and multiple poses.... with the right code, you'll make it work from the very foundation.
and the foundation is, the sprite is a copy of an image, cropped down to a certain size, at certain coordinates.
all of which, you can control.

Well, since I can't manage to find the right code for a classic sprite, I don't think I'll find the proper one for your solution either 🙁
that was an example.
what I mean is, you can build the code up from what already exists, to what you need.
in fact, I managed to bring animations to map scenes, and make them loop, without using parallel processes....... they started as a PP structure, but when I saw they had grown too messy, I went and built a new system.
that was an example.
what I mean is, you can build the code up from what already exists, to what you need.
in fact, I managed to bring animations to map scenes, and make them loop, without using parallel processes....... they started as a PP structure, but when I saw they had grown too messy, I went and built a new system.

I mean, maybe I'm expressing myself wrong, but I mean... yeah? That's what I'm trying to do but I can't manage to do it, which is why I started the thread in the first place? I'm glad you could manage it, may I ask how?

I really appreciate you guys trying to help, but now that's two of you who come with what seems to me as kindful but sort of irrelevant replies to the main issues? But since that's now two of you I guess I'm the one at fault for not expressing myself properly.

I think I'll just move on and find a solution of my own, thank you for trying.
summarizing, I did what I knew from a previous work: I put the sequence to play frame 1, in a function that just runs the next frame to that which is given.
at the last frame, it stops, but if at the last frame you short it out to point to the first frame.... 😉
then, I added a check to be able to control it from the UI (I repurposed an option I wasn't using) and, voila!, looped animation.
no pun intended XD

for your case, I'd say, look into the spriteCharacter functions, and track the properties walkAnime and stepAnime (I think that's how they're called).
they should be boolean properties.... meaning, they control wether the timing is updated (increased) or not.
from there, you can get to the function that controls how far into the animation to go before resetting.
so, >number of frames<, from >the control of the animation<, from >the condition to run the animation<.
that's how I code: I find out what is making something tick, I didn't invent anything new (...yet)

Original thread: https://forums.rpgmakerweb.com/threads/quick-question-regarding-movement-route-animations-and-frames.87563/