![]() |
gettileset()
How do you use this to pull a certain tileset? b/c putting one with or without quotes doesnt work, and its not loading any of them on the server its on, just pics1.png. If that cant be used, what could you do to substitute for that?
|
It's used to get the main tileset being used at the moment.
PHP Code:
|
Well we were using that on an online editor, so its in a diff wep, dont think that would work right, more of a setimg and gettileset() is in that.
|
example:
PHP Code:
tried PHP Code:
PHP Code:
|
It has no parameters needed.
Edit: addtiledef2() tilesets won't be read by gettileset(). |
Switch says addtiledef2 was interfering, in case anyone else runs into this.
|
gettileset() only grabs the main tileset being set(addtiledef). Addtiledef2's are rendered separately, on a 'layer' above the main tileset, rather than actually being inserted into it. There is currently no simple way to manage all the addtiledef2's, however, but it's been suggested before.
|
Quote:
|
gettileset() only returns the main tileset (addtiledef), not parts (addtiledef2).
It's calculating the image and offset for each tile when drawing it. There is currently no way to get the current tile sets except by drawing them on a drawing panel ("TILES") |
Quote:
|
| All times are GMT +2. The time now is 11:19 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.