设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
楼主: 柳柳
打印 上一主题 下一主题

[RMVX发布] [原创发布]动画数据库 RMXP -> RMVX,继续编辑制作

 关闭 [复制链接]

Lv4.逐梦者

梦石
9
星屑
785
在线时间
291 小时
注册时间
2007-12-15
帖子
256
21
发表于 2008-3-7 03:13:46 | 只看该作者
可惜了 VX的数据库限制了单张素材最多100桢

以前做得很多全屏大动画拷贝不过来了......
残念无念
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

冰の红苹果的小狗狗

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
2539
22
发表于 2008-3-7 19:15:47 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv4.逐梦者

梦石
9
星屑
785
在线时间
291 小时
注册时间
2007-12-15
帖子
256
23
发表于 2008-3-7 23:19:21 | 只看该作者
以下引用英俊de狗于2008-3-7 11:15:47的发言:
脚本


关脚本什么事?

数据库动画素材最多只显示100桢

叠加第2张素材也只能200桢

多出的部分不显示

不显示的部分怎么拼进去......
残念无念
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

冰の红苹果的小狗狗

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-12-15
帖子
2539
24
发表于 2008-3-7 23:49:06 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
7946
在线时间
1182 小时
注册时间
2007-7-29
帖子
2055
25
发表于 2008-3-12 08:39:29 | 只看该作者
游戏没做完,看到VX的动画不错,就偷来XP用,看到柳大这脚本,改了下,变成VX能够去XP,缺点是只能用一张图片。
用法完全一样,只是版本对调。

  1. #---------------------------------------------------------------------------
  2. # ■ VX动画导出脚本
  3. #    -将脚本插入,然后运行游戏。
  4. #    -将生成的文件拷贝到XP的工程底下。
  5. #    -复制图片与音乐文件
  6. #---------------------------------------------------------------------------
  7. $data_animations    = load_data("Data/Animations.rvdata")

  8. module RPG
  9.   class Animation
  10.     class Timing
  11.       def initialize
  12.         @frame = 0
  13.         @se = RPG::AudioFile.new("", 80)
  14.         @flash_scope = 0
  15.         @flash_color = Color.new(255,255,255,255)
  16.         @flash_duration = 5
  17.         @condition = 0
  18.         @se_name = ""
  19.         @se_volume = 80
  20.         @se_pitch = 100
  21.       end
  22.       attr_accessor :frame
  23.       attr_accessor :se
  24.       attr_accessor :se_name
  25.       attr_accessor :se_volume
  26.       attr_accessor :se_pitch
  27.       attr_accessor :flash_scope
  28.       attr_accessor :flash_color
  29.       attr_accessor :flash_duration
  30.       attr_accessor :condition
  31.     end
  32.   end
  33. end

  34. module RPG
  35.   class Animation2
  36.     def initialize
  37.       @id = 0
  38.       @name = ""
  39.       @animation1_name = ""
  40.       @animation1_hue = 0
  41.       @animation2_name = ""
  42.       @animation2_hue = 0
  43.       @position = 1
  44.       @frame_max = 1
  45.       @frames = [RPG::Animation::Frame.new]
  46.       @timings = []
  47.     end
  48.     attr_accessor :id
  49.     attr_accessor :name
  50.     attr_accessor :animation1_name
  51.     attr_accessor :animation1_hue
  52.     attr_accessor :animation2_name
  53.     attr_accessor :animation2_hue
  54.     attr_accessor :position
  55.     attr_accessor :frame_max
  56.     attr_accessor :frames
  57.     attr_accessor :timings
  58.   end
  59. end

  60. module RPG
  61.   class Animation2
  62.     class Timing
  63.       def initialize
  64.         @frame = 0
  65.         @flash_scope = 0
  66.         @flash_color = Color.new(255,255,255,255)
  67.         @flash_duration = 5
  68.         @condition = 0
  69.         @se_name = ""
  70.         @se_volume = 100
  71.         @se_pitch = 100
  72.       end
  73.       attr_accessor :frame
  74.       attr_accessor :se
  75.       attr_accessor :se_name
  76.       attr_accessor :se_volume
  77.       attr_accessor :se_pitch
  78.       attr_accessor :flash_scope
  79.       attr_accessor :flash_color
  80.       attr_accessor :flash_duration
  81.       attr_accessor :condition
  82.     end
  83.   end
  84. end

  85. $ani = []
  86. for ani in $data_animations
  87.   next if ani == nil
  88.   temp_ani = RPG::Animation2.new
  89.   temp_ani.id = ani.id
  90.   temp_ani.name = ani.name
  91.   temp_ani.animation1_name = ani.animation1_name
  92.   temp_ani.animation1_hue = ani.animation1_hue
  93.   temp_ani.animation2_name = ani.animation2_name
  94.   temp_ani.animation2_hue = ani.animation2_hue
  95.   temp_ani.position = ani.position
  96.   temp_ani.frame_max = ani.frame_max
  97.   temp_ani.frames = ani.frames
  98.   temp_ani.timings = []
  99.   for timing in ani.timings
  100.     if timing.se != nil
  101.       timing.se_name = timing.se.name
  102.       timing.se_volume = timing.se.volume
  103.       timing.se_pitch = timing.se.pitch
  104.       timing.se = nil
  105.     end
  106.     temp_timings = RPG::Animation2::Timing.new
  107.     temp_timings.frame = timing.frame
  108.     #temp_timings.se = timing.se
  109.     temp_timings.se_name = timing.se_name
  110.     temp_timings.se_volume = timing.se_volume
  111.     temp_timings.se_pitch = timing.se_pitch
  112.     temp_timings.flash_scope = timing.flash_scope
  113.     temp_timings.flash_color = timing.flash_color
  114.     temp_timings.flash_duration = timing.flash_duration
  115.     temp_timings.condition = timing.condition
  116.     temp_ani.timings.push(temp_timings)
  117.   end
  118.   $ani.push(temp_ani)
  119. end


  120. save_data($ani, "animations2.vx_to_xp")
  121. p "资料已经记录完毕!"
  122. exit
复制代码

  1. #---------------------------------------------------------------------------
  2. # ■ VX动画导入脚本
  3. #    -确定复制好的文件都在。
  4. #    -将脚本插入,然后运行游戏。
  5. #---------------------------------------------------------------------------
  6. module RPG
  7.   class Animation2
  8.     def initialize
  9.       @id = 0
  10.       @name = ""
  11.       @animation1_name = ""
  12.       @animation1_hue = 0
  13.       @animation2_name = ""
  14.       @animation2_hue = 0
  15.       @position = 1
  16.       @frame_max = 1
  17.       @frames = [RPG::Animation::Frame.new]
  18.       @timings = []
  19.     end
  20.     attr_accessor :id
  21.     attr_accessor :name
  22.     attr_accessor :animation1_name
  23.     attr_accessor :animation1_hue
  24.     attr_accessor :animation2_name
  25.     attr_accessor :animation2_hue
  26.     attr_accessor :position
  27.     attr_accessor :frame_max
  28.     attr_accessor :frames
  29.     attr_accessor :timings
  30.   end
  31. end

  32. module RPG
  33.   class Animation2
  34.     class Timing
  35.       def initialize
  36.         @frame = 0
  37.         @flash_scope = 0
  38.         @flash_color = Color.new(255,255,255,255)
  39.         @flash_duration = 5
  40.         @condition = 0
  41.         @se = RPG::AudioFile.new("", 80)
  42.         @se_name = ""
  43.         @se_volume = 100
  44.         @se_pitch = 100
  45.       end
  46.       attr_accessor :frame
  47.       attr_accessor :se
  48.       attr_accessor :se_name
  49.       attr_accessor :se_volume
  50.       attr_accessor :se_pitch
  51.       attr_accessor :flash_scope
  52.       attr_accessor :flash_color
  53.       attr_accessor :flash_duration
  54.       attr_accessor :condition
  55.     end
  56.   end
  57. end

  58. $data_animations_xpvx    = load_data("animations2.vx_to_xp")
  59. $data_animations    = load_data("Data/Animations.rxdata")

  60. for ani in $data_animations_xpvx
  61.   new_ani = RPG::Animation.new
  62.   new_ani.id = ani.id
  63.   new_ani.name = ani.name
  64.   new_ani.animation_name = ani.animation1_name
  65.   new_ani.animation_hue = ani.animation1_hue
  66.   new_ani.position = ani.position
  67.   new_ani.frame_max = ani.frame_max
  68.   new_ani.frames = ani.frames
  69.   for timings in ani.timings
  70.     temp_timings = RPG::Animation::Timing.new
  71.     temp_timings.frame = timings.frame
  72.     temp_timings.se = RPG::AudioFile.new(timings.se_name, timings.se_volume, timings.se_pitch)
  73.     temp_timings.flash_scope = timings.flash_scope
  74.     temp_timings.flash_color = timings.flash_color
  75.     temp_timings.flash_duration = timings.flash_duration
  76.     new_ani.timings.push(temp_timings)
  77.   end
  78.   $data_animations.push(new_ani)
  79. end

  80. save_data($data_animations, "Data/Animations.rxdata")
  81. p "已经导入完毕,愿你成功。"
  82. exit
复制代码
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
44 小时
注册时间
2006-6-4
帖子
386
26
发表于 2008-3-14 13:35:31 | 只看该作者
不错啊,没想到XP的动画可以那么吻合地接入VX,
只可惜XP我删了{/dk}
迷宫````
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
4 小时
注册时间
2008-10-4
帖子
19
27
发表于 2008-10-4 10:53:04 | 只看该作者
怎么加VIP点啊!
- -#...
回复 支持 反对

使用道具 举报

Lv2.观梦者 (管理员)

八云紫的式神

梦石
0
星屑
539
在线时间
1238 小时
注册时间
2008-1-1
帖子
4282

烫烫烫

28
发表于 2008-10-4 18:30:36 | 只看该作者
11V啊……我把积分全换过去就差不多了
rm for linux(wine)制作中,期待夏娜SAMA能实现到webrm上
回复 支持 反对

使用道具 举报

Lv1.梦旅人

kissye的宠物<

梦石
0
星屑
61
在线时间
1563 小时
注册时间
2008-8-11
帖子
6174

贵宾

29
发表于 2008-10-4 20:22:23 | 只看该作者
呐……我突然想起我的素材都是默认的………
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-7-8
帖子
466
30
发表于 2008-10-4 20:25:13 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-20 00:25

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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