I know this must get asked a lot, but how may you display the actors in the battle screen of VX Ace? Maybe more precisely, what must be done to do so? I know there are a lot of scripts and engines out there that modify the battle system to work this way, but I am more interested in simply manually editing the code as to display the actor sprites.
What I have so far:
There is already a "dummy" actor sprite that is refreshed, updated, and disposed properly, except that the use_sprite? boolean is set to false, because its an actor.
However, I have set this variable to true, which causes the game to get an image for the actor.
Strangely, the only way to make the actor appear is by having the game ignore the update_origin method for the Sprite_Battler class
Here's the excerpt of the class that presents the situation
class Sprite_Battler < Sprite_Base .... #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super if @battler @use_sprite = @battler.use_sprite? if @use_sprite update_bitmap #update_origin #not sure why I have to ignore this method... update_position end setup_new_effect setup_new_animation update_effect else self.bitmap = nil @effect_type = nil end end .... #--------------------------------------------------------------------------
# * Update Origin
#--------------------------------------------------------------------------
def update_origin
if bitmap
self.ox = bitmap.width / 2
self.oy = bitmap.height
#perhaps it's pushing the sprite off the screen?
end
end
....
end
Seriously, when I ignore this method, the actor is displayed. If I don't ignore it, then the actor sprite disappears. The enemy sprites appear regardless. All of the battlers' origins are messed up because of this, though...
Any ideas, explanations, or modifications on how to fix this issue and display these sprites would be appreciated!
What I have so far:
There is already a "dummy" actor sprite that is refreshed, updated, and disposed properly, except that the use_sprite? boolean is set to false, because its an actor.
However, I have set this variable to true, which causes the game to get an image for the actor.
Strangely, the only way to make the actor appear is by having the game ignore the update_origin method for the Sprite_Battler class
Here's the excerpt of the class that presents the situation
class Sprite_Battler < Sprite_Base .... #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super if @battler @use_sprite = @battler.use_sprite? if @use_sprite update_bitmap #update_origin #not sure why I have to ignore this method... update_position end setup_new_effect setup_new_animation update_effect else self.bitmap = nil @effect_type = nil end end .... #--------------------------------------------------------------------------
# * Update Origin
#--------------------------------------------------------------------------
def update_origin
if bitmap
self.ox = bitmap.width / 2
self.oy = bitmap.height
#perhaps it's pushing the sprite off the screen?
end
end
....
end
Seriously, when I ignore this method, the actor is displayed. If I don't ignore it, then the actor sprite disappears. The enemy sprites appear regardless. All of the battlers' origins are messed up because of this, though...
Any ideas, explanations, or modifications on how to fix this issue and display these sprites would be appreciated!