赞 | 4 |
VIP | 17 |
好人卡 | 62 |
积分 | 14 |
经验 | 52410 |
最后登录 | 2023-8-24 |
在线时间 | 962 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1379
- 在线时间
- 962 小时
- 注册时间
- 2012-4-30
- 帖子
- 1475
|
本帖最后由 铅笔描绘的思念 于 2012-6-15 19:39 编辑
- create_command_window.x create_gold_window.x create_status_window.y
复制代码 create_command_window
create_gold_window
create_status_window
这三个都是定义的函数 而且没有x y 的属性 所以应该是绝对会出错的....所以
脚本的话应该是- #---------------------------------------------------------------------------
- #
- # 菜单移动
- #
- # 制作:百页书香
- #
- #---------------------------------------------------------------------------
- class Scene_Menu < Scene_MenuBase
- #--------------------------------------------------------------------------
- # ● 生成指令窗口
- #--------------------------------------------------------------------------
- def create_command_window
- @command_window = Window_MenuCommand.new
- @command_window.set_handler(:item, method(:command_item))
- @command_window.set_handler(:skill, method(:command_personal))
- @command_window.set_handler(:equip, method(:command_personal))
- @command_window.set_handler(:status, method(:command_personal))
- @command_window.set_handler(:formation, method(:command_formation))
- @command_window.set_handler(:save, method(:command_save))
- @command_window.set_handler(:game_end, method(:command_game_end))
- @command_window.set_handler(:cancel, method(:return_scene))
-
- @command_window.x = -100
-
- end
-
- #--------------------------------------------------------------------------
- # ● 生成金钱窗口
- #--------------------------------------------------------------------------
- def create_gold_window
- @gold_window = Window_Gold.new
- @gold_window.x = 0
- @gold_window.y = Graphics.height - @gold_window.height
-
- @gold_window.x = -100
- end
- #--------------------------------------------------------------------------
- # ● 生成状态窗口
- #--------------------------------------------------------------------------
- def create_status_window
- @status_window = Window_MenuStatus.new(@command_window.width, 0)
- @status_window.y = -200
- end
- #--------------------------------------------------------------------------
- # 窗口移动
- #--------------------------------------------------------------------------
- def update
- super
- if @command_window.x <= 0
- @command_window.x += 5
- end
-
- if @gold_window.x <= 0
- @gold_window.x += 5
- end
-
- if @status_window.y <= 0
- @status_window.y += 5
- end
- end
- end
复制代码 以后看教程之类的好好看看F1(vaF1貌似还没翻译完......但vx的也是差不多的)
|
|