this may make me sound like a complete idiot but i really need to know how to do this and ive already looked through all DM guide and it showed up once and it didnt tell me how to use it. So please,
Can someone tell me how to use icon_state?
btw DONT link me to an article, just plz tell me straight up.
thnx,
~Brizzel987, leader of the Game Builders Design Team
PS: u can sign up for the design team at http://gamebuildersteam.yolasite.com/
EDIT
link broken just email at [email protected] to apply
EDIT
new link: http://gamebuildersstudio.yolasite.com/
ID:158786
Jun 30 2009, 12:40 pm (Edited on Jul 2 2009, 4:36 am)
|
|
Jun 30 2009, 12:42 pm
|
|
Straight up: use it like you would a variable, because it is one.
|
In response to Kaiochao
|
|
<code> turf/floor icon = 'icon.dm' icon_state = "Iconstate3" </code>
|
what icon_state is... well it lets you pick a seprate icon, within the icon file like for example, you make a new icon file, you name it "pie", now you can make icons within the file and give them names, now we will have two icons within that one file we will name the first one "pie1" and we will name the second one "pie2", which denotes two seprate icons within the whole icon file, now to pick and choose which one all you have to do is the icon_state now this is what the code would look like
mob i tried to be as clear as possible that i could, i hope that i have helped |
In response to Xxdragonslxx
|
|
Icon_state allows you to use icons within an icon. you simply have to do this.
mob if you have only two icon_states in your dmi file. You can simply use flick which changes it to the other icon_state. |
In response to Xxdragonslxx
|
|
your problem is probably in the qoutations.
icon = 'icon.dmi' <--- notice the 's icon_state = "blah"<----- notice the "s make sure caps and what not are teh same. |
In response to Janosalderan69
|
|
oh my god yes! my problem WAS in the quotations! THANK YOU EVERYBODY! and like i promised u will get credit
|