Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Tile set problem... (https://forums.graalonline.com/forums/showthread.php?t=63961)

sivako 02-06-2006 11:11 PM

Tile set problem...
 
//#CLIENTSIDE
addtiledef2 mwnts.png,mwn_,0,0;

is what i have ive tryed it with and without

//#CLIENTSIDE

i realy dunno what is wrong... can some please help?

haunter 02-06-2006 11:43 PM

You need a condition.

if (created) is the most commonly used when dealing with tile defs.

WanDaMan 02-07-2006 11:59 AM

Quote:

Originally Posted by sivako
//#CLIENTSIDE
addtiledef2 mwnts.png,mwn_,0,0;

is what i have ive tryed it with and without

//#CLIENTSIDE

i realy dunno what is wrong... can some please help?

The image needs to be in the same directory as the level. Check if it is >_<

If it's in the same directory and it doesn't work try these.
NPC Code:

//#CLIENTSIDE
if(created){
addtiledef2 mwnts.png,mwn_,0,0;
}



Lets look at the syntax of the command

Quote:

addtiledef2 image,level,x,y;
You've understood the image and level so we don't need to go in to that.

The x + y; Each tile is 16 pixels, therefore the number you put in here has to be a multiple of 16 for it too work correctly.

For more information Mykel created a tutorial on how to use addtiledef2. Click here for the link.

Infernix 02-07-2006 09:04 PM

orrrr just put the tileset in the webgifs folder and then try it O_o. Cause that usually works for me. But Wan is right as well. That works for all images showing up in levels.

NicoX 02-07-2006 09:59 PM

Quote:

Originally Posted by Infernix
orrrr just put the tileset in the webgifs folder and then try it O_o. Cause that usually works for me. But Wan is right as well. That works for all images showing up in levels.

???


Well when you want it to put it in the System you could try:

NPC Code:
//#CLIENTSIDE
function onCreated(){
removetiledefs("");
addtiledef("mwnts.png","´mwn_",0);
}
function onPlayerEnters(){
removetiledefs("");
addtiledef("mwnts.png","mwn_",0);
}



When your tileset is a type 1 you can replace that 0 with an 1.
Thats the GS2 version.

-Nico


All times are GMT +2. The time now is 07:38 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.