Graal Forums  

Go Back   Graal Forums > Development Forums > Level Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-06-2006, 11:11 PM
sivako sivako is offline
Registered User
Join Date: Dec 2005
Posts: 9
sivako is on a distinguished road
Unhappy 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?
Reply With Quote
  #2  
Old 02-06-2006, 11:43 PM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
You need a condition.

if (created) is the most commonly used when dealing with tile defs.
Reply With Quote
  #3  
Old 02-07-2006, 11:59 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
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.
__________________
V$:CONFL16T
Reply With Quote
  #4  
Old 02-07-2006, 09:04 PM
Infernix Infernix is offline
Inferno (Level Designer)
Join Date: May 2005
Location: U.S,Maryland
Posts: 1,288
Infernix is on a distinguished road
Send a message via AIM to 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.
Reply With Quote
  #5  
Old 02-07-2006, 09:59 PM
NicoX NicoX is offline
Kingdoms Management
NicoX's Avatar
Join Date: Mar 2004
Location: Frankfurt/Main, Germany
Posts: 1,933
NicoX will become famous soon enough
Send a message via AIM to NicoX Send a message via MSN to NicoX
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
__________________
Yours Sincerely,

-Nico
(GK Management)

Clash: Nico, I'm going to give you an example of good management.
Clash: One of my staff removed my RC and banned me.
Clash: I didn't ban or remove their RC after I got another one to fix me.
Clash: Do you know why?
Björn: Because you IP banned him ?

Stefan logged on.
(npcserver) has reset the attributes of Stefan
*Stefan: ah my client crashed








Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:21 PM.


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