Quote:
Originally Posted by Soala
meh I somehow thought he would use it online too
|
Quote:
Originally Posted by thepimp
new problem. i am using this code to try and use my tileset (not that one a new one i made with alot more stuff) on the offline editor.
|
Quote:
Originally Posted by Soala
also, I'm no scripter, but what I did usualy works for me. Do you mean I forgot like the () and ""? I never thought those were really needed, my bad.
|
There are a few problems:
PHP Code:
//#CLIENTSIDE
function onCreated() {
addtiledef revernia_tileset.png,#L,1;
}
- Functions need to have parentheses surrounding the parameters, e.g. addTileDef(whatever, goes, here);
- Since you're now using GS2 and not GS1 strings need to be enclosed in quotation marks, e.g. addTileDef("revernia_tileset.png", #L, 1);
- #L is GS1 and not valid in GS2. The proper replacement is either player.level.name or this.level.name. In this case, the latter. addTileDef("revernia_tileset.png", this.level.name, 1);
Quote:
Originally Posted by thepimp
cbk i copied and pasted the second code onto it and the original pics1 tileset got deleted and the entire level went black.
|
Can you attach the tileset?