Quote:
Originally Posted by alexandralove
Ok but do I clear the tiledefs then i put back my tiles (the type1)
And anyway, I still can't find how to get the type1
I made one ok, I uploaded it on RC
But even in 1 level it wont show
and the old tileset is still here !
This is what I did:
// NPC made by Soala
if (created) {
removetiledefs;
addtiledef silence_tiles_type1.png;
}
can you tell me what's wrong ?
|
"addtiledef" has two more parameters. You need to do addtiledef tileset.png, begining of your level's name, tileset type;
Not to mention it's not clientsided, you have to put //#CLIENTSIDE above clientside scripts. For online scripts it's recommended you use gscript2, but for a working example.. do this:
PHP Code:
//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef silents_tiles_type1.png, #L, 1;
}