Window Animation Designer

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

windowAnimationDesignerAni

This script provides animation properties that allow you to easily design window animations using a declarative approach. Rather than writing how the animation should be performed, you simply write what you expect it to do, and this designer handles the animation for you!

There are two types of animations

  1. opening animations
  2. closing animations

Opening animations are run whenever a window is opened, while closing animations are run whenever a window is closed.

The following animation options are available, which you can use to design your animations

  • Window moving
  • Window resizing
  • Window fading

Download

Script: download here

Here are some examples of custom menu window animations. To see them in action, copy them under this script, run your game, then open the party menu.

Sample1 – window slides in from the outside, slides out outwards
Sample2 – window slides in from the outside, then crosses across the screen
Sample3 – windows slide in from the outside, performs fade-in and fade-out. These are the animations used for the preview picture.

Installation

Place this script below Materials and above Main

Usage

To create an opening animation, define the following method in your window:

def opening_animation
  # animation options
end

To create a closing animation, define the following method in your window

def closing_animation
  # animation options
end

The following animation options are available

@new_x       - moves the window to the new x coord
@new_y       - moves the window to the new y coord
@new_width   - adjusts the width of the window
@new_height  - adjusts the height of the window
@new_opacity - adjust the opacity of the window
@fade_speed  - how fast the opacity changes
@slide_speed - how fast the size and position change

See the examples for a demonstration on how they are used.

Note that the initial positions and other properties of the window may need to be changed in order to achieve the desired animation effects. For example, if you want a window to slide in from outside the screen, you need to first re-position the window outside of the screen before specifying the new x or y positions.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

15 Responses

  1. SweetMeltyLove says:

    And of course this doesn’t work with the Luna Engine u.u nothing works with that thing

  2. Gradian says:

    Not sure if the previous download link made it to you or it was eaten up (being mistaken as spam?)
    so here’s the link
    https://mega.co.nz/ #!cAtFDQLY!PuOxJS8cO3qRS76WwfM0MQkXw8SrSfSMO8yl5HcSJW4

    • Hime says:

      It was likely flagged.

      The problem was with the example itself. All of the menus use the same status menu, so it works for one scene, but not the other. I’ve put it in a simple modification to get it to work (by using separate windows for each scene). These are just examples; devs are meant to build their own animations and style each window to suit their needs.

      • Gradian says:

        Well I managed to fix the problem after much trial and error using the sample scripts and they work fine now with the custom scripts. Thanks for your help!

  3. Gradian says:

    I think there’s an incompatibility with another script? I’m using galv’s custom menu layout as well as yanfly’s Ace engine (adjusting the sizing, although I think the main problem is with galv’s script) and this happened:

    http://38.media.tumblr.com/b184b3c495730af6da6fff7712719fea/tumblr_ncz86p3kdW1sk0l9io1_1280.png

    the 1st actor got cut off and well the rest can be explained in the pic. This applied both to the item window and the skills/magic window

    • Hime says:

      Verify which script this is incompatible with, and show what you have done (use pastebin for code)

      • Gradian says:

        Sorry for late reply orz.

        I tried removing all scripts related to the menu but doing so didn’t fix the problem.

        Also I used your 3rd sample (editing only the numbers) and placed it directly under the script. Maybe that might’ve been the caused.

        http://pastebin.com/8LaX2Vt8

        • Hime says:

          Try it in a new project. I don’t think my script was already broken from the beginning.

          You need to remove all scripts one by one, not just the ones you think might be incompatible.

          • Gradian says:

            Tried in a fresh, scriptless project and I still get the same results, even after trying out other samples and even without the samples (adding values after def opening_animation/def closing_animation).

          • Hime says:

            Send me the fresh project. It seems weird that you’re missing actors with a fresh sample.

  4. johnny says:

    Is this compatible with custom menu scripts With more windows

    • Hime says:

      The script itself doesn't do anything. You would need to define animations for the new windows if you would like them to be animated. This script simply provides the framework that allows you to easily create animations.

  5. Cheeso says:

    I’m using Yanfly’s shop script and there are definitely compatibility issues. Is there something I can do to make the currency window show up in the right spot or make it so that when I choose the equip command from the window is goes away when switching to show the party?

    • Hime says:

      What compatibility issues? Do the windows not show up correctly when you insert the script?

      You will most likely need to change where the window is positioned initially in order to have it appear in the expected place.

      I’m not sure how the shop windows work to comment on it.

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax