VSP swap command?
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Time_Wizard

Is there a simple command that will let you load a different VSP for the map you have loaded? I can't seem to find one in the documentation.

Posted on 2006-02-23 01:10:01

Interference22

That's because there isn't one. However, that doesn't mean there isn't a solution to your problem. While you can't load a new VSP, per se, you *can* access the VSP as an image and copy stuff over it.

The handle for the image containing the current map's VSP is curmap.tileset. The image size is 16 x 16 multiplied by however many tiles there are in your VPS: essentially a long strip of tiles. It would be no problem to create a seperate set of tiles as a similarly formatted image file and simply load it into memory and then simply blit it over the top of the current tileset.

The fact you can access the tileset in this way even allows you to (theoretically) produce procedural animations in your VSP: little graphical effects that are controlled via code rather than drawn by hand, like smoke or leaves that sway dynamically in the breeze. Might be a bit of a performance hit if you really go to town, though. Something to think about if you want to save some time on producing art. Just think: sod drawing all those trees, write an algorythm to produce them at runtime.

Posted on 2006-02-23 17:14:01


Displaying 1-2 of 2 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.