animated character on top of menu

So the thing I'm working on doesn't exactly need this, but I would really like to have an animated character bopping around in the corner of the menu screen. Maybe it could even carry over to the save, skills, equip, status and item menus. Think of the save menu in FF6 (link here) except simpler, as I don't care for it to be moving around on the screen or rotating characters each time the screen is loaded. Just the one character on a looped animation.

I don't mind if it's a charset or a series of pictures chained together like a GIF. It would just be great to have a little guy showing up on my menu screens like this:


(The tiny person bobbing back and forth in the lower right, if you can see it. It's an edited picture with the character photoshopped on... maybe I shouldn't have used imgflip)

If it's too hard or impossible, that's fine. I don't mind sticking with a stationary image too much. But if you consider my request, I'd be super delighted!

Thank you!
haha maybe I have a idea use Luna engine animated background this could work!

but it's depends I am not sure for this 
Well, there doesn't seem to be an option for animated backgrounds, but there are animated hp and mp bars. Perhaps if I were able to make only one of said bars visible and treat it as a character sprite, it could work... Eh, we'll see.

[EDIT] ah, nope. It doesn't move. :/
Moghunter has a script which will do something like this, but those are a bit tricky to work with.
I will avoid the moghunter script with luna 

simply because moghunter OVERWRITE everything's instead of alias it 

(bad xp and vx old sequel) 

so this make his script imcompatible with luna (most of them)

and what I mean by the lunatic animated background they offert to use ANIMATED 

so you can make your background with your sprite paste in it and you do frame of your background (3) 

this should work fine (I am not sure if they do the Leader consideration tought )

but I also take in consideration for make animated stuff enable  for luna I will speak with Archeia about this

(since I know you use Luna engine ) 
I don't think luna or mog is required for this. Animating the entire background seems like overkill. I will look into writing a little script once I get home from work.
Oh, thank you Yato! You're the best~

Also, I have tried the background frames thing, but it happens to just spring up with a bunch of errors with everything I do. Oh well. :/
Evgenij wrote a method for this which can be used to do what you want.


The script should be in the completed script section for VX Ace, a new one, so it should be still on page 2, 3 or close to that.


Install that script, use the method provided in the script, and you can place the animated character anywhere you want.


It needs a bit of scripting knowledge to use it thought.
Here's the little scriptlet:

Spoiler
class Sprite_AnimChar < Sprite #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(x, y, charset, frames, speed, viewport = nil) super(viewport) @charset = charset @frames = frames @pattern = 0 @count = speed / 2 @speed = speed self.x = x self.y = y self.z = 300 set_character_bitmap end #-------------------------------------------------------------------------- # * Set Character Bitmap #-------------------------------------------------------------------------- def set_character_bitmap self.bitmap = Cache.character(@charset) @cw = bitmap.width / @frames @ch = bitmap.height update_src_rect end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super @count += 1 if @count == @speed @count = 0 @pattern += 1 @pattern %= @frames update_src_rect end end #-------------------------------------------------------------------------- # * Update Transfer Origin Rectangle #-------------------------------------------------------------------------- def update_src_rect self.src_rect.set(@pattern * @cw, 0, @cw, @ch) endend#===class Scene_MenuBase < Scene_Base #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- alias animated_menu_char_start start def start animated_menu_char_start create_animated_char if use_animated_char end #-------------------------------------------------------------------------- # * Use Animated Character in this scene #-------------------------------------------------------------------------- def use_animated_char return true end #-------------------------------------------------------------------------- # * Create Animated Character #-------------------------------------------------------------------------- def create_animated_char #Edit the line below (x, y, "file name", # of frames, speed (higher# = slower) @char_sprite = Sprite_AnimChar.new(400, 370, "Actor2-menu", 4, 20, @viewport) end #-------------------------------------------------------------------------- # * Update Frame (Basic) #-------------------------------------------------------------------------- alias animated_menu_char_update_basic update_basic def update_basic animated_menu_char_update_basic @char_sprite.update if @char_sprite end #-------------------------------------------------------------------------- # * Terminate #-------------------------------------------------------------------------- alias animated_menu_char_terminate terminate def terminate animated_menu_char_terminate @char_sprite.dispose if @char_sprite endend#===class Scene_File < Scene_MenuBase def use_animated_char; return false; endendclass Scene_Shop < Scene_MenuBase def use_animated_char; return false; endend class Scene_Name < Scene_MenuBase def use_animated_char; return false; endend class Scene_Debug < Scene_MenuBase def use_animated_char; return false; endend
Line 69 is where you'll want to go to edit things like the position, filename, number of frames and speed. I should be compatible with most scripts as everything is alias'd, but let me know if you run into any issues and I will take a look. The sprite needs to go in the Characters graphic folder and be a horizontal lineup of all the frames you need.

I went with adding it to every menu outside a few (save, shop, etc). It's the same sprite and position for each, but that's easily modifiable if you want. Basically, just ask if you want any customization help with it.
Oh my god, Yato! This works so well!! Thank you, thank you SO much!

It really is easy to work with as you said, so I went ahead and I set the file menu to true just because I want there to be a slight reference to ff6 in it (but not much). I can't wait to finish the menus~!

Thank you again! This thread is solved~
No problem! I love working with menus/sprites, and I don't get a lot of opportunities lately.


You could also copy the create_animated_char method into various submenus if you wanted a different character/animation on different screens as well. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/animated-character-on-top-of-menu.36259/