设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 124|回复: 0

[转载发布] Sliding Menu Animation

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-8-2 22:32:23 | 显示全部楼层 |阅读模式
    Sliding Menu Animation 2014/12/15

    Creator name: VIPArcher​


    Introduction
    This script features a sliding menu animation.

    Features
    - Sliding animation applies to default menu and item screen.
    - It bounces a little at the end.

    Preview




    How to Use
    Paste this script above Main.

    Script link
    https://raw.githubusercontent.com/ovate/VIPArcher-rggs3/main/VA_SlidingMenuAnimation

    Spoiler: Code
                    Code:       
    1. #==============================================================================
    2. # ■ VA Sliding Menu Animation
    3. #  Inspiration: 100 scholarly papers, written in pencil while depicting my thoughts
    4. # By :VIPArcher [email: VIPArcher@sina.com]
    5. #  -- The script comes from http://rm.66rpg.com Please keep the information above.
    6. #  Feel free to use/ reprint
    7. #==============================================================================
    8. # This script features a sliding menu animation.
    9. # Applies to default menu and item screen.
    10. #==============================================================================
    11. $VIPArcherScript ||= {};$VIPArcherScript[:menu_slide] = 20141215
    12. #==============================================================================
    13. # ■ Scene_Base
    14. #==============================================================================
    15. class Scene_Base
    16.   #--------------------------------------------------------------------------
    17.   # ● Start post process
    18.   #--------------------------------------------------------------------------
    19.   alias vip_slide_post_start post_start
    20.   def post_start
    21.     init_slide
    22.     vip_slide_post_start
    23.     slide_start
    24.   end
    25.   #--------------------------------------------------------------------------
    26.   # ● Ready before sliding
    27.   #--------------------------------------------------------------------------
    28.   def init_slide ; end
    29.   #--------------------------------------------------------------------------
    30.   # ● Window sliding process
    31.   #--------------------------------------------------------------------------
    32.   def slide_start ; end
    33. end
    34. #-------------------------------------------------------------------------------
    35. # ■ The part above should not be change
    36. #==============================================================================
    37. #  Menu screen
    38. #==============================================================================
    39. class Scene_Menu < Scene_MenuBase
    40.   #--------------------------------------------------------------------------
    41.   # ● Ready before sliding
    42.   # Define the location of each window from the beginning (which is set outside  of the screen)
    43.   # Which specific window animates in each scene.
    44.   #--------------------------------------------------------------------------
    45.   def init_slide
    46.     @command_window.y -= 150
    47.     @gold_window.x -= 100
    48.     @status_window.x = 260
    49.   end
    50.   #--------------------------------------------------------------------------
    51.   # ● Window sliding process
    52.   #--------------------------------------------------------------------------
    53.   def slide_start
    54.     10.times do
    55.       @command_window.y += 15
    56.       @gold_window.x    += 10
    57.       @status_window.x  -= 10
    58.                       # Coordinates of amount per frames
    59.       Graphics.update # Refresh window
    60.     end
    61.     10.times{|i|
    62.     @gold_window.x    += 5 * Math.cos(i)
    63.     @command_window.y += 5 * Math.cos(i)
    64.     Graphics.update}  # Bounce
    65.   end
    66. end
    67. #==============================================================================
    68. #  Item screen
    69. #==============================================================================
    70. class Scene_Item < Scene_ItemBase
    71.   #--------------------------------------------------------------------------
    72.   # ● Slide preparation
    73.   #--------------------------------------------------------------------------
    74.   def init_slide
    75.     @category_window.x -= 100
    76.     @item_window.y += 100
    77.     @help_window.y -= 60
    78.   end
    79.   #--------------------------------------------------------------------------
    80.   # ● Window sliding process
    81.   #--------------------------------------------------------------------------
    82.   def slide_start
    83.     10.times do
    84.       @category_window.x += 10
    85.       @item_window.y -= 10
    86.       @help_window.y += 6
    87.       # Coordinates of amount per frames
    88.       Graphics.update # Refresh window
    89.     end
    90.   end
    91. end
    复制代码


    Credit and Thanks:
    VIPArcher

    Terms of Use- Free for commercial and non-commercial use.

    License - MIT License: http://opensource.org/licenses/mit-license.php


    本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/sliding-menu-animation.81314/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 08:29 , Processed in 0.090573 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表