Re: Load_tile()
How does load_tile work? I can't get it to do anything...
Nothing at all happens, with or without the '.bmp'.
load_tile("whatever.bmp", 1); draw_background();
Nothing at all happens, with or without the '.bmp'.
I just had a look in the DinkC reference. And it says, that it replaces your tile with another tile depending on the second parameter. So, perhaps you have to make sure that the tile you are replacing is not used currently at the screen? You might also wanna remove the .bmp suffix and perhaps remove the quote tags. You could also have a go at trying to use the load_screen() procedure.
The second parameter is the tile to be replaced, using whatever.bmp instead.
Tried everything you mentioned, I even tried putting all the original tiles in the D-Mod's folder but no difference.
Tried everything you mentioned, I even tried putting all the original tiles in the D-Mod's folder but no difference.
Is the new tile your trying to load in the tiles folder of your Dmod?
I used this command before and I'm pretty sure you have to include the directory name (tiles).
So:
That should work.
Although I could be wrong, just try it, I'm pretty sure this is what I did to get it to work.
I used this command before and I'm pretty sure you have to include the directory name (tiles).
So:
load_tile("tiles\whatever.bmp", 1);
That should work.
Although I could be wrong, just try it, I'm pretty sure this is what I did to get it to work.