Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
I think this shouldn't be too hard to do, I need to play a specific battle animation on an enemy when it dies, I need to do it with scripting, but I don't know how to make battle animations with scripts, or do it when the enemy dies.
I hope you can help me again
I hate to bump, but I would really appreciate an answer to this.
I know I have to edit Sprite_Battler, and in waht section, I just need to know how to show a specific battle animation (for exampe battle animation with id 2) in said enemy.
in Sprite_Battler near de end of the script look for:
Code:
if @battler.damage == nil and @battler.dead?
if @battler.is_a?(Game_Enemy)
animation = $data_animations[2]
animation(animation, @battler.animation_hit)
@battler.animation_id = 0
# $game_system.se_play($data_system.enemy_collapse_se)
else
$game_system.se_play($data_system.actor_collapse_se)
end
collapse
@battler_visible = false
end
end
change it to:
Code:
if @battler.damage == nil and @battler.dead?
if @battler.is_a?(Game_Enemy)
animation = $data_animations[ANMATION_ID]
animation(animation, @battler.animation_hit)
@battler.animation_id = 0
else
$game_system.se_play($data_system.actor_collapse_se)
end
collapse
@battler_visible = false
end
end