Does anyone know what the @battler from Sprite_Battler and Sprite_Base on VX:
self.x = @battler.screen_x# + @sprite.bitmap.width/2 self.y = @battler.screen_y - @battler.sprite.bitmap.height/2# + @sprite.bitmap.heightequivalent to Ace?
I am trying to convert this script section from VX to Ace:
def update_position type = ZEX::ANIMATED_STATES[@state.id] return if type.nil? self.x = @battler.screen_x# + @sprite.bitmap.width/2 self.y = @battler.screen_y - @battler.sprite.bitmap.height/2# + @sprite.bitmap.height if type.is_a?(Array) unless type[4].nil? self.x += type[3] self.y += type[4] end end endThank you very much in advance.
self.x = @battler.screen_x# + @sprite.bitmap.width/2 self.y = @battler.screen_y - @battler.sprite.bitmap.height/2# + @sprite.bitmap.heightequivalent to Ace?
I am trying to convert this script section from VX to Ace:
def update_position type = ZEX::ANIMATED_STATES[@state.id] return if type.nil? self.x = @battler.screen_x# + @sprite.bitmap.width/2 self.y = @battler.screen_y - @battler.sprite.bitmap.height/2# + @sprite.bitmap.height if type.is_a?(Array) unless type[4].nil? self.x += type[3] self.y += type[4] end end endThank you very much in advance.