Save-Point
Charlie's Passability Mini-Map, Version 0.4 - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Charlie's Passability Mini-Map, Version 0.4 (/thread-2311.html)

Pages: 1 2 3


Charlie's Passability Mini-Map, Version 0.4 - Charlie Fleed - 02-22-2009

Passability Mini-Map by Charlie Fleed
Version 0.4.4 (21-1-2011)

Introduction

This script draws a mini-map indicating the passability of each tile and the position of the player and some other map objects.
The map takes into account directional passability, and - for the moment - does not consider blocking events except those using graphics from the tileset. In that case the through check-box is also considered.
A zoom option allows to define how much of the map is displayed.
It includes some code required to save png images in your project folder, which I dind't write, I simply found it on the Internet but I lost track of the author. If anyone recognizes the author I will be happy to credit him/her.

Instructions

The script will create a folder named "pass_maps" inside your project's Pictures folder.
The first time you enter a map, the image is computed and saved, the following times the saved image will be loaded instead. Deleting the image, which will have the map id in its name, forces the image to be recomputed. Do it when you change your maps and you want to update the passability maps.
You can also use a Call Script command "redraw_passmap", in game, for the same purpose.
Use the Call Script commands "show_passmap" and "hide_passmap" in order to... well, I'll let you guess what they do...
Put a comment "Enemy" in some page of enemy-events that you want to be displayed in the mini-map, and a comment "Teleport" in some page of teleport-events. If you want a teleport or an enemy event to be not displayed in the mini-map when a specific page is active, put a comment "No Map" in that page.
The script can use custom images to display the hero, allies and enemies.
You can set the position, size, opacity and background image for the mini-map.

Screenshots

[Image: th_Immagine-6.jpg]

When I say you can set the mini-map size... I mean it ;)

[Image: th_Immaginea.jpg]

Script

Version 0.4.4
Version 0.4



Charlie's Passability Mini-Map - Charlie Fleed - 03-25-2009

Update. This version (0.3) should be lighter.
Now you can also see transfer points on the mini map (using a "Teleport" comment inside them).


Charlie's Passability Mini-Map - Charlie Fleed - 06-28-2009

A little bug has been fixed, the code looked for "allies" to be drawn on the minimap and caused an error when the user does not have a caterpillar-like script in use.


Charlie's Passability Mini-Map - Lt. Fox - 06-29-2009

Very basic, yet very nice! Good work Charlie! I'll use this with full credit toward you! :p


Charlie's Passability Mini-Map - Charlie Fleed - 07-19-2009

Preview of version 0.4, with background and custom sprites for the hero, allies and enemies.
[Image: Immagine-6.jpg]


Charlie's Passability Mini-Map - explocion200 - 12-12-2009

is there a way to place a frame around the map? or even add color to it?


Charlie's Passability Mini-Map - Charlie Fleed - 12-12-2009

You can use a background image.
PASSMAP_BACKGROUND_IMAGE="your picture name".
When you say add color, do you mean changing the light and dark grey?


Charlie's Passability Mini-Map - explocion200 - 12-12-2009

Charlie Fleed Wrote:You can use a background image.
PASSMAP_BACKGROUND_IMAGE="your picture name".
When you say add color, do you mean changing the light and dark grey?

yea so it shows were the water is and land and objects and trees but if anything just land and water


Charlie's Passability Mini-Map - Charlie Fleed - 12-12-2009

explocion200 Wrote:
Charlie Fleed Wrote:You can use a background image.
PASSMAP_BACKGROUND_IMAGE="your picture name".
When you say add color, do you mean changing the light and dark grey?

yea so it shows were the water is and land and objects and trees but if anything just land and water

I will post a version where you can decide the colors of passable and non-passable tiles. However, even in this version, you cannot differentiate water, which usually is non-passable, from other non-passable tiles and draw them in the map with different colors.


Charlie's Passability Mini-Map - explocion200 - 12-12-2009

Charlie Fleed Wrote:
explocion200 Wrote:
Charlie Fleed Wrote:You can use a background image.
PASSMAP_BACKGROUND_IMAGE="your picture name".
When you say add color, do you mean changing the light and dark grey?

yea so it shows were the water is and land and objects and trees but if anything just land and water

I will post a version where you can decide the colors of passable and non-passable tiles. However, even in this version, you cannot differentiate water, which usually is non-passable, from other non-passable tiles and draw them in the map with different colors.


ok thanks :)