Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Pixelmovement and Zoom
#1
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

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
Reply }


Messages In This Thread
Pixelmovement and Zoom - by ark - 05-28-2010, 10:39 PM
[Resolved] Pixelmovement and Zoom - by Jaberwocky - 05-29-2010, 02:50 AM
[Resolved] Pixelmovement and Zoom - by ark - 05-29-2010, 07:33 AM
[Resolved] Pixelmovement and Zoom - by Jaberwocky - 05-29-2010, 03:33 PM
[Resolved] Pixelmovement and Zoom - by ark - 05-29-2010, 10:47 PM
[Resolved] Pixelmovement and Zoom - by Jaberwocky - 05-30-2010, 03:52 AM
[Resolved] Pixelmovement and Zoom - by ark - 05-30-2010, 08:35 AM
[Resolved] Pixelmovement and Zoom - by Jaberwocky - 05-30-2010, 03:08 PM
[Resolved] Pixelmovement and Zoom - by ark - 05-30-2010, 07:04 PM
[Resolved] Pixelmovement and Zoom - by Jaberwocky - 05-31-2010, 12:54 AM
[Resolved] Pixelmovement and Zoom - by ark - 05-31-2010, 06:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   How would I put the new zoom mode 7? Raphael Rpg Games 2 6,472 07-05-2011, 09:59 PM
Last Post: MGC
   Pixelmovement and speed ark 2 4,985 05-31-2010, 05:51 PM
Last Post: ark



Users browsing this thread: