Hi everyone, quick question
Making a battle system to have the characters physically move up to the enemy and swing at it, then return, I can handle the animation but here's the problem I'm having.
Code from Scene Battle 4
That @active_battler seems to be a Game_Actor, whereas I need it to get access to the Sprite_Battler that corresponds to it. Also, I need to get the Sprite_Battler for the corresponding target so that I can get x,y values and move/animate the sprites accordingly.
Any suggestions?
Making a battle system to have the characters physically move up to the enemy and swing at it, then return, I can handle the animation but here's the problem I'm having.
Code from Scene Battle 4
Code:
#--------------------------------------------------------------------------
# * Frame Update (main phase step 3 : animation for action performer)
#--------------------------------------------------------------------------
def update_phase4_step3
# Animation for action performer (if ID is 0, then white flash)
if @animation1_id == 0
@active_battler.white_flash = true
else
@active_battler.animation_id = @animation1_id
@active_battler.animation_hit = true
end
#@active_battler.attack
@wait_count = 8
# Shift to step 4
@phase4_step = 4
end
That @active_battler seems to be a Game_Actor, whereas I need it to get access to the Sprite_Battler that corresponds to it. Also, I need to get the Sprite_Battler for the corresponding target so that I can get x,y values and move/animate the sprites accordingly.
Any suggestions?