Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
SpriteZilla

Map zoom-in script or event

Recommended Posts

As the title above states. I could really use a zoom script. My sprites look too small and I want others to see the detail i put into them. I know it's probably a lot of work but I think a lot of people could use this not just me. Thanks for the replies guys. I'm editing this to ad pics right now. Thanks. Bye 4 now.
 
Oh yeah, I found a script that will zoom the sprites. Is it possible to alter this script to zoom the map in as well. Here is the code. Credit goes to Neo-Bahamut. I didn't make it, I just want to alter it.
 

 

 class Sprite_Character #von Neo-Bahamut >:3
  # Alle Charaktere (true) oder nur der Spieler (false) ?
  Zoom_AllChars = true
 
  # Zoom-Stufe am oberen Bildschirmrand (in Prozent)
  Zoom_Top = 200
  # Zoom-Stufe am unteren Bildschirmrand
  Zoom_Down = 200
 
  # -------------------------
 
  alias_method :nb_aliasmethod_smallzoomaddon_spritecharacter_update, :update
  def update
nb_aliasmethod_smallzoomaddon_spritecharacter_update
update_nb_zoom
  end
 
  def update_nb_zoom
return if !(Zoom_AllChars or self.character.is_a?(Game_Player))
y = self.y
dif = Zoom_Down - Zoom_Top
per = y / 480.0
zoom = (Zoom_Top + (dif*per)) / 100.0
self.zoom_x = self.zoom_y = zoom
  end
end

 
 
 
 
Here's what the sprites look like. 

 

http://gyazo.com/d0adc3b0d18ad1a944b23e3ed5c6e831

 

 

 

 

Edit : 1/22/2014 

Hello guys. Thank you all for the feedback but I felt i should let everyone know I ended up using the one by Neo-Bahamut and just got rid of my battle system because it was having problems with the zoom script. So mods I guess this is solved. Thanks for your help everyone. As a side note, I'll be posting a demo soon of my new NES style rpg game! Later guys. 

 

 

 

 

 

Edit :  7/17/2014

Okay guys here is the one that works for the characters on map.

 

 class Sprite_Character #von Neo-Bahamut >:3
  # Alle Charaktere (true) oder nur der Spieler (false) ?
  Zoom_AllChars = true
 
  # Zoom-Stufe am oberen Bildschirmrand (in Prozent)
  Zoom_Top = 200
  # Zoom-Stufe am unteren Bildschirmrand
  Zoom_Down = 200
 
  # -------------------------
 
  alias_method :nb_aliasmethod_smallzoomaddon_spritecharacter_update, :update
  def update
nb_aliasmethod_smallzoomaddon_spritecharacter_update
update_nb_zoom
  end
 
  def update_nb_zoom
return if !(Zoom_AllChars or self.character.is_a?(Game_Player))
y = self.y
dif = Zoom_Down - Zoom_Top
per = y / 480.0
zoom = (Zoom_Top + (dif*per)) / 100.0
self.zoom_x = self.zoom_y = zoom
  end
end
 
 
AND Here is my own edit of the script that works for battlers. 
 
 class Sprite_Battler #von Neo-Bahamut >:3 My edit :D
  # Alle Charaktere (true) oder nur der Spieler (false) ?
  Zoom_AllBatts = true
 
  # Zoom-Stufe am oberen Bildschirmrand (in Prozent)
  Zoom_Top = 200
  # Zoom-Stufe am unteren Bildschirmrand
  Zoom_Down = 200
 
  # -------------------------
 
  alias_method :nb_aliasmethod_smallzoomaddon_spritebattler_update, :update
  def update
nb_aliasmethod_smallzoomaddon_spritebattler_update
update_nb_zoom
  end
 
  def update_nb_zoom
return if !(Zoom_AllBatts or self.battler.is_a?(Game_Actor))
y = self.y
dif = Zoom_Down - Zoom_Top
per = y / 480.0
zoom = (Zoom_Top + (dif*per)) / 100.0
self.zoom_x = self.zoom_y = zoom
  end
end
 
Note: These both work with the Default Battle System. I have no idea if they will work with another one. Try it out and see. Peace and Enjoy !!!
Edited by SpriteZilla

Share this post


Link to post
Share on other sites

I'm sure it's possible however it would probably mean changing some of the main engine itself. Why do you think your sprites look too small? post a picture. The only other solution is actually making the sprites bigger.

Share this post


Link to post
Share on other sites

like dolarmak said, you could just make the sprites bigger. the only requirement for a sprite sheet is the proportions, not the size.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...