05-28-2010, 10:39 PM
Hi!
I've got a script which I adore... Well, make it two.
One is the Pixelmovement script by f0tz!baerchen (I use the light version)
And the other one was made for me by a very sweet scripter, and it makes me able to zoom in on the character set and make it bigger or smaller.
I would like you to help me to make these two scripts compatible with each other. Please, it would be a lot of help!
(the error is: 'No implicit conversion to float from nil' and it points to line 17 in this script:)
self.zoom_x, self.zoom_y = @character.zoom_x, @character.zoom_y
I've got a script which I adore... Well, make it two.
One is the Pixelmovement script by f0tz!baerchen (I use the light version)
And the other one was made for me by a very sweet scripter, and it makes me able to zoom in on the character set and make it bigger or smaller.
I would like you to help me to make these two scripts compatible with each other. Please, it would be a lot of help!
(the error is: 'No implicit conversion to float from nil' and it points to line 17 in this script:)
self.zoom_x, self.zoom_y = @character.zoom_x, @character.zoom_y
Code:
class Game_Character
alias_method :ark_sizing_game_character_initialize, :initialize
attr_accessor :zoom_x
attr_accessor :zoom_y
def initialize
ark_sizing_game_character_initialize
@zoom_x = @zoom_y = 1.0
end
def resize(zoom_x, zoom_y)
@zoom_x, @zoom_y = zoom_x, zoom_y
end
end
class Sprite_Character < RPG::Sprite
alias_method :ark_sizing_sprite_character_update, :update
def update
ark_sizing_sprite_character_update
self.zoom_x, self.zoom_y = @character.zoom_x, @character.zoom_y
end
end