The Dink Network

Re: Load_tile()

July 22nd 2009, 05:51 AM
dinkdead.gif
How does load_tile work? I can't get it to do anything...

load_tile("whatever.bmp", 1);
draw_background();

Nothing at all happens, with or without the '.bmp'.
July 22nd 2009, 05:57 AM
fairy.gif
GlennGlenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
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.
July 22nd 2009, 06:18 AM
dinkdead.gif
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.
July 22nd 2009, 06:59 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
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:

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.