I have searched high and low for a solution to this error and for some reason have hit a dead end. This is where I hope someone would be kind enough to help me solve my problem.
I am running Victor Engine Base, Animated Battler and Actor Battler in my game (with tons of other scripts, but I have isolated those three in a blank game and the same error occurs so I am 99% sure it's not a compatibility issue.) Whenever I have an actor join the party in the middle of a battle using battle events, I get an error which I have attached a screenshot of.
Script 'Victor Engine - Actors Battlers' line 563: NoMethodError occurred.
undefined method 'default_direction' for #<Game_Actor:0xc9a0694>
I have tried messing with the code enough to the point where I'm afraid of breaking my game. (Don't worry, I've returned them to proper standing before moving on.) This is the section of code the error is referring to:
actor.default_direction if $imported[:ve_animated_battle]
#--------------------------------------------------------------------------
# * New method: update_party
#--------------------------------------------------------------------------
def update_party
@actor_sprites.each_index do |i|
next if $game_party.battle_members.include?(@actor_sprites.battler)
@actor_sprites.dispose
@actor_sprites = nil
end
$game_party.battle_members.collect do |actor|
next if @actors_party.include?(actor)
@actor_sprites.push(Sprite_Battler.new(@viewport1, actor))
end
@actor_sprites.compact!
@actors_party = $game_party.battle_members.dup
$game_party.battle_members.each do |actor|
old_position = [actor.screen_x, actor.screen_y]
actor.default_direction if $imported[:ve_animated_battle]
if old_position != [actor.screen_x, actor.screen_y]
sprite(actor).start_effectappear)
end
end
end
end
I saw one other post with the same error, but lucky for me, the op closed it without explaining their solution. I was wondering if anyone else could help me solve this problem? It would be appreciated from someone who doesn't know anything about Ruby! I've also attatched a demo using just the mentioned scripts to show exactly what I'm trying to do in my game.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.