Project1
标题:
关于角色攻击于被攻击动画
[打印本页]
作者:
小包子
时间:
2008-5-3 02:28
提示:
作者被禁止或删除 内容自动屏蔽
作者:
3535
时间:
2008-5-3 02:37
Game_Actor
#--------------------------------------------------------------------------
# ● 普通攻击 获取攻击方动画 ID
#--------------------------------------------------------------------------
def animation1_id
weapon = $data_weapons[@weapon_id]
return weapon != nil ? weapon.animation1_id : ($data_actors[@actor_id].id+300)
end
#--------------------------------------------------------------------------
# ● 普通攻击 获取对像方动画 ID
#--------------------------------------------------------------------------
def animation2_id
weapon = $data_weapons[@weapon_id]
return weapon != nil ? weapon.animation2_id : ($data_actors[@actor_id].id+200)
end
复制代码
Game_Enemy
#--------------------------------------------------------------------------
# ● 普通攻击 获取攻击方动画 ID
#--------------------------------------------------------------------------
def animation1_id
return $data_enemies[@enemy_id].animation1_id == 0 ? ($data_troops[@troop_id].members[@member_index].enemy_id+500)
end
#--------------------------------------------------------------------------
# ● 普通攻击 获取对像方动画 ID
#--------------------------------------------------------------------------
def animation2_id
return $data_enemies[@enemy_id].animation1_id == 0 ? ($data_troops[@troop_id].members[@member_index]+500)
end
复制代码
[LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者:
小包子
时间:
2008-5-3 02:39
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1