Thread: tileset help.
View Single Post
  #23  
Old 09-05-2010, 08:06 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Soala View Post
meh I somehow thought he would use it online too
Quote:
Originally Posted by thepimp View Post
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 View Post
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 View Post
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?
__________________
Reply With Quote