Jump to content

Recommended Posts

hello guys, here I am ...again! :D( Sorry but I have too much questions😝?!)

 

Does anyone know how to animate windows  and elements?

 

I know that there are scripts to do that, the closest that I found to what I wanted was with the script Khas smooth sliding, but only applies to windows (and I managed to work with it) for what i understood lolz

 

1) Is there any way for example slide each actor index in Main menu instead of all window_menustatus?  (SEE IMAGE)

Quote

1694287298_SemTtuloSLIDE.png.b7151511b6b83664b259b62709859125.png

 

2)  Also each index in Menu_command?

 

3) for instance, If cursor is in index Party > in main menu can add padding in the next index? (see image example)

 

Quote

429220739_SemTtuloCURSOR.png.2ad560a890a52a941827ab2de8818ed3.png

 

If is on index "Items" No padding

 

200401140_SemTtuloCURSOR2.png.a15c4ebd03c81e71a84bfb327b516352.png

 

 

I had more questions but I forgotzz lol

Thank you :) :)

Share this post


Link to post
Share on other sites

Well, I am not sure if there are any existing scripts to do that kind of stuff, but it's possible to use sprites and windows together to do some things like that. It would probobly involve a ton of scripting work though! I never tried animating stuff the way you want to so I couldn't be sure of the exact details, and I am not sure if it would help you unless there was a script ready.

Edited by Kayzee

Share this post


Link to post
Share on other sites

I probobly won't be of much help unless you know a fair bit about scripting already. I mean for example, here is a little script I made to add a little animated cursor sprite to menus (needs a MenuCursor.png image in the \Graphics\System dir to work):

 

Spoiler

class Sprite_Cursor < Sprite
  
  FLASH_COLOR = Color.new(255,255,255,128)
  
  def initialize(window)
    super()
    @window = window
    @effect_count = 0
    update
  end
  
  def update
    super
    update_visibility
    return unless self.visible
    update_bitmap
    update_position
    update_effects
  end
  
  def update_bitmap
    self.bitmap = Cache.system("MenuCursor") unless self.bitmap
  end
  
  def update_visibility
    @index = @window.index
    if !@window.open?
      self.visible = false
    elsif !@window.visible
      self.visible = false
    elsif @window.cursor_rect.width == 0 || @window.cursor_rect.height == 0
      self.visible = false
    elsif @index < 0
      self.visible = false
    else
      self.visible = true
    end
  end
  
  def update_position
    @index = @window.index
    rect = @window.item_rect(@index)
    self.x = @window.x + rect.x - @window.ox
    self.y = @window.y + rect.y - @window.oy
    self.z = @window.z + 100
    self.viewport = @window.viewport
    self.ox = 1
    self.oy = -7
  end
  
  def update_effects
    if @window.active
      self.tone = @window.tone
      self.opacity = 255
      self.ox += Math.sin(@effect_count / 6.0)
      self.oy += Math.cos(@effect_count / 6.0)
      self.flash(FLASH_COLOR,10) if @effect_count == 0
      @effect_count += 1
    else
      self.tone = (@inactive_tone ||= Tone.new(0,0,0,255))
      self.tone.red = @window.tone.red / 2
      self.tone.green = @window.tone.green / 2
      self.tone.blue = @window.tone.blue / 2
      self.opacity = 192
      @effect_count = 0
    end
  end
  
  def dispose
    super
    self.bitmap.dispose if self.bitmap
  end
end

class Window_Selectable
  alias_method :menu_cursor_initialize, :initialize
  def initialize(*args)
    menu_cursor_initialize(*args)
    @sprite_cursor = Sprite_Cursor.new(self)
  end
  
  alias_method :menu_cursor_update, :update
  def update
    menu_cursor_update
    @sprite_cursor.update
  end
  
  alias_method :menu_cursor_dispose, :dispose
  def dispose
    menu_cursor_dispose
    @sprite_cursor.dispose
  end
end

 

 

The basic idea is that every window can have it's own little sprite that is drawn on top of the window that I can move around and animate how ever I want. I just used it as a little visual thing, but the idea could maybe be expanded. It's possible to recode stuff so what is normally drawn in the window is drawn on sprites like that, but it might be harder then you expect. Of course, that's just the first step. After you are able to make sprites for all the things you want to move around, then you would still need to figure out how to animate them right.

 

Unfortunately as far as I know there is no existing script to help with this, so you would have to code it yourself or get someone else to do it. There may still be one out there though, I'm not sure.

 

You know, @Rikifive seems pretty good at this sort of stuff if I remember right. Maybe they can help you more? But they can be busy, so don't bug um too much okay? :3

Edited by Kayzee

Share this post


Link to post
Share on other sites

another animated window script is NASTY animated windows

but it only does the main window.

 

As far as the other stuff you wanted, I have never seen anything do this. It's not a common script. You may have to make something up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×