Jump to content

Recommended Posts

I've only just learnt Ruby (2 days and counting), so please point out if anything could be done "better", started playing with this idea since I couldn't see it out there, and the thought of a group of tiny npcs following Gulliver was amusing ;-)

 

Introduction

Allows you to change the zoom level on sprites depending on what they are on a per-map basis. This can be used to do things like making the character smaller on the main map, or creating a Lilliput village where the character is twice the size of the villagers.
 
 
Screenshot
Character is at 25%, as are the two doors on the castle (compare with the castle to the right that has no door events), the chest and fountains are at 50%, balloon at 150%, and dragon at 200%...
1Mo4591.png?1
 
Map Notetags
It is possible (and suggested) to have all the notetags for this in a single entry, simply put them all within a single set of brackets (the "zoom" is only required at the beginning).
 
Set the zoom level for all sprites:
<zoom all=x ...> 

Set the zoom level for the player *and* followers:

<zoom player=x ...> 

Set the zoom level for followers only:

<zoom follower=x ...> 

Set the zoom level for any vehicles:

<zoom vehicle=x ...> 

Set the zoom level for npcs, these are classed as any event that can move:

<zoom npc=x ...>

Set the zoom level for any event that has a fixed position:

<zoom event=x ...> 
 
Event Comments
Set the zoom for this specific event (overrides map notetags):
ZOOM x 
 

TODO

Event script commands?

Edited by Rycochet

Share this post


Link to post
Share on other sites

Added a screenshot, there's not much to really see, though as it zooms full sprites - the fountains are actually animated, as is your character walking etc.

Edited by Rycochet

Share this post


Link to post
Share on other sites

agreed. i like this very much.

 

in your script,

what does $imported do?

 

could you explain those two lines (65, 66)?

Edited by Calintz

Share this post


Link to post
Share on other sites

I've copied the layout from Yanfly's scripts, and that is part of it - basically it's there for other coders to access to check if a certain script is already running. Several other scripts and coders use similar things, I just felt that was the most logical one out there - it's not required, but as I intend to be coding more scripts, and potentially having some interdependence I've added it ;-)

Share this post


Link to post
Share on other sites

This is super cool.

 

I like the idea, and I like how you set this up.

 

Now we can make a distinctly overworld type map.

 

Good job!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×