Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   addtiletype() (https://forums.graalonline.com/forums/showthread.php?t=134262704)

ffcmike 04-05-2011 07:35 PM

addtiletype()
 
This may have been requested before, if so it would be a good idea to bring up with V6 supposedly approaching.

If possible I'd like to see a function for:

addtiletype(x, y, width, height, tiletype);

This would work similarly to addtiledef2();, but instead of placing an image onto a tileset it would modify the tiletype within the specified area to your specified tiletype number.

This would make it much easier for applying custom tilesets of a fairly large size, usually you either have to include default tiles within them un-necessarily, or split them up into lots of different pieces and place over various different points of the tileset.
With this you'd simply be able to place a square of blocking tiles and a square of non blocking tiles anywhere not otherwise being used on the tileset via addtiledef2, then simply use the function to set your custom tilesets to the tiletype you want.

cbk1994 04-05-2011 07:39 PM

If only we had function hooking :(.

fowlplay4 04-05-2011 11:01 PM

Looks like you're missing the levelstart parameter.

Devil_Lord2 04-10-2011 05:32 AM

I like the idea, I tried to redo type0 pics1.png to be type1 until I realized there were more blocking tiles then there were blocking space.. that and telling which should be pots, chairs and such would be amazing. It would defeat the 'ingenious' type1 ^.-!


All times are GMT +2. The time now is 04:51 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.