赞 | 3 |
VIP | 333 |
好人卡 | 2 |
积分 | 1 |
经验 | 1450446 |
最后登录 | 2019-5-29 |
在线时间 | 615 小时 |
Lv1.梦旅人 66RPG站长
- 梦石
- 0
- 星屑
- 54
- 在线时间
- 615 小时
- 注册时间
- 2005-10-10
- 帖子
- 5734
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
XP时当年那么多的动画,浪费可惜。
转换方法如下:
1、RMXP中插入代码1并执行
2、生成一个animations2.xp_to_vx,复制到RMVX的工程下
3、RMVX中插入代码2并执行。关闭VX工程重开后就会发现动画已经正确添加完毕。
代码1:
代码2:
- module RPG
- class Animation2
- def initialize
- @id = 0
- @name = ""
- @animation_name = ""
- @animation_hue = 0
- @position = 1
- @frame_max = 1
- @frames = [RPG::Animation::Frame.new]
- @timings = []
- end
- attr_accessor :id
- attr_accessor :name
- attr_accessor :animation_name
- attr_accessor :animation_hue
- attr_accessor :position
- attr_accessor :frame_max
- attr_accessor :frames
- attr_accessor :timings
- end
- end
- module RPG
- class Animation2
- class Timing
- def initialize
- @frame = 0
- @flash_scope = 0
- @flash_color = Color.new(255,255,255,255)
- @flash_duration = 5
- @condition = 0
- @se_name = ""
- @se_volume = 80
- @se_pitch = 100
- end
- attr_accessor :frame
- attr_accessor :se_name
- attr_accessor :se_volume
- attr_accessor :se_pitch
- attr_accessor :flash_scope
- attr_accessor :flash_color
- attr_accessor :flash_duration
- attr_accessor :condition
- end
- end
- end
- $data_animations_xpvx = load_data("animations2.xp_to_vx")
- $data_animations = load_data("Data/Animations.rvdata")
- for ani in $data_animations_xpvx
- new_ani = RPG::Animation.new
- new_ani.id = ani.id
- new_ani.name = ani.name
- new_ani.animation1_name = ani.animation_name
- new_ani.animation1_hue = ani.animation_hue
- new_ani.animation2_name = ""
- new_ani.animation2_hue = 0
- new_ani.position = ani.position
- new_ani.frame_max = ani.frame_max
- new_ani.frames = ani.frames
- for timings in ani.timings
- temp_timings = RPG::Animation::Timing.new
- temp_timings.frame = timings.frame
- temp_timings.se = RPG::SE.new(timings.se_name, timings.se_volume, timings.se_pitch)
- temp_timings.flash_scope = timings.flash_scope
- temp_timings.flash_color = timings.flash_color
- temp_timings.flash_duration = timings.flash_duration
- new_ani.timings.push(temp_timings)
- end
- $data_animations.push(new_ani)
- end
- save_data($data_animations, "Data/Animations.rvdata")
- p "大家好,今天66RPG的网速似乎不错啊。"
- exit
复制代码
|
|