Project1

标题: 关于战斗动画。 [打印本页]

作者: 番茄    时间: 2008-7-1 18:59
提示: 作者被禁止或删除 内容自动屏蔽
作者: dbshy    时间: 2008-7-1 20:44
def update_phase4_step4
   # 对像方动画
   if  $data_skills[@active_battler.current_action.skill_id].scope == 2 then
     target = @target_battlers[0]
     target.animation_id = @animation2_id
     target.animation_hit = (target.damage != "Miss")
   else
     for target in @target_battlers
       target.animation_id = @animation2_id
       target.animation_hit = (target.damage != "Miss")
     end
   end   
   # 限制动画长度、最低 8 帧
   @wait_count = 8
   # 移至步骤 5
   @phase4_step = 5
end

这样还是有BUG,@target_battlers[0]的问题,LZ可以去该一下RPG::Sprite  def animation
作者: 番茄    时间: 2008-7-1 20:44
提示: 作者被禁止或删除 内容自动屏蔽
作者: 司马睿风    时间: 2008-7-1 20:51
请楼主不要连帖,你们帖子中间差了10秒,楼主很有连帖自顶的嫌疑
作者: 灯笼菜刀王    时间: 2008-7-1 23:06
把动画对象改为,画面。
作者: 番茄    时间: 2008-7-1 23:08
提示: 作者被禁止或删除 内容自动屏蔽
作者: 灯笼菜刀王    时间: 2008-7-1 23:18
数据库
作者: 番茄    时间: 2008-7-1 23:21
提示: 作者被禁止或删除 内容自动屏蔽
作者: 灯笼菜刀王    时间: 2008-7-1 23:23
没有

会做动画的怎么连这个都不会设置。

如果动画是从别人那复制来的,伸手党无视之。
作者: 灯笼菜刀王    时间: 2008-7-1 23:33
不是就自己研究

数据库,动画,动画位置。OVER。 [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: 被遗忘的角落    时间: 2008-7-1 23:35
在数据库的设置动画的对象改为画面,具体不记得
作者: 番茄    时间: 2008-7-1 23:35
提示: 作者被禁止或删除 内容自动屏蔽
作者: 番茄    时间: 2009-6-12 08:00
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1