Project1

标题: 关于角色攻击于被攻击动画 [打印本页]

作者: 小包子    时间: 2008-5-3 02:28
提示: 作者被禁止或删除 内容自动屏蔽
作者: 3535    时间: 2008-5-3 02:37
Game_Actor
  1.   #--------------------------------------------------------------------------
  2.   # ● 普通攻击 获取攻击方动画 ID
  3.   #--------------------------------------------------------------------------
  4.   def animation1_id
  5.     weapon = $data_weapons[@weapon_id]
  6.     return weapon != nil ? weapon.animation1_id : ($data_actors[@actor_id].id+300)
  7.   end
  8.   #--------------------------------------------------------------------------
  9.   # ● 普通攻击 获取对像方动画 ID
  10.   #--------------------------------------------------------------------------
  11.   def animation2_id
  12.     weapon = $data_weapons[@weapon_id]
  13.     return weapon != nil ? weapon.animation2_id : ($data_actors[@actor_id].id+200)
  14.   end
复制代码



Game_Enemy
  1.   #--------------------------------------------------------------------------
  2.   # ● 普通攻击 获取攻击方动画 ID
  3.   #--------------------------------------------------------------------------
  4.   def animation1_id
  5.     return $data_enemies[@enemy_id].animation1_id == 0 ? ($data_troops[@troop_id].members[@member_index].enemy_id+500)
  6.   end
  7.   #--------------------------------------------------------------------------
  8.   # ● 普通攻击 获取对像方动画 ID
  9.   #--------------------------------------------------------------------------
  10.   def animation2_id
  11.     return $data_enemies[@enemy_id].animation1_id == 0 ? ($data_troops[@troop_id].members[@member_index]+500)
  12.   end
复制代码
[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: 小包子    时间: 2008-5-3 02:39
提示: 作者被禁止或删除 内容自动屏蔽




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