The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: cozziekuns on September 06, 2011, 01:47:23 AM

Title: Tilemap to Bitmap Converter
Post by: cozziekuns on September 06, 2011, 01:47:23 AM
Tilemap to Bitmap Converter
Version: 1.0
Author: cozziekuns
Date: September 5, 2011

Version History



Planned Future Versions


Description


A scripting tool which converts the RGSS2 Tilemap class into a usable Bitmap.

Features


Screenshots

In-game screenshot taken manually with Print Screen + Cropping

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi54.tinypic.com%2F20joe2d.png&hash=1572daa6faf4167400a9f80846f1ed660ab34f48)

Screenshot taken with Converter and an additional screenshot script

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi53.tinypic.com%2F27x1qg0.png&hash=d15ad3bb6d62508e1aa756784ba35c329bc8ede7)


Instructions

See script.

Script


http://pastebin.com/raw.php?i=Jmqcn5rq (http://pastebin.com/raw.php?i=Jmqcn5rq)

Credit



Thanks

Support


Post down below.

Known Compatibility Issues

Will not work with parallax maps, for obvious reasons. But those already have all the data saved, so I don't see a problem.

Author's Notes


If any scripter can optimize this code, as mine is fairly sloppy, please tell me how.
Title: Re: Tilemap to Bitmap Converter
Post by: JonFawkes on September 06, 2011, 02:56:52 AM
Whoa, this is awesome! I've been creating parallax maps by manually taking screenshots and weaving them together. This should at least speed up my workflow quite a bit in production. Great script, as always cozzie
Title: Re: Tilemap to Bitmap Converter
Post by: modern algebra on September 06, 2011, 10:47:41 PM
Great idea cozzie!
Title: Re: Tilemap to Bitmap Converter
Post by: Infinate X on September 13, 2011, 07:37:07 PM
How do you use this? I have one the activates when a script call is done, and it's kind of time consuming :/
Title: Re: Tilemap to Bitmap Converter
Post by: cozziekuns on September 13, 2011, 11:02:04 PM
The time it takes to convert ultimately depends on the size of the map. I tested a 30 * 30 and it took like 3-5 seconds, but I'm guessing the bigger maps take quite a large amount of time to process. You're supposed to use it in tandem with another script, such as my map screenshot script (http://rmrk.net/index.php/topic,43751.0.html).

Oh, and maps larger than 256 tiles wide or long will cause the script to throw an error, just a heads up.