ID:155294
![]() Aug 4 2011, 8:33 am
|
|
does anyone know a good tutorial that will teach me how to use icon states?
|
![]() Aug 4 2011, 8:45 am
|
|
What do you exactly mean?
|
Kyle_ZX wrote:
I think he means switching states, like regular to mining to firing weapons etc.It's still the same thing though. It's just a variable. |
i meant switching between states.. so far i have this;
Teleport_home() icon_state = "[usr.icon_state] teleport" sleep(5) usr.Move(locate(/turf/start)) sleep(5) icon_state = but i don't know what to put to revert to the original state.. due to the "usr.icon_state" being changed i dont know how to go back to the original |
Why dont you just use flick() on the teleport verb instead of changing your icon state?
heres the reference on flick: http://www.byond.com/ members/?command=reference&path=proc%2Fflick |
Nitro1009 wrote:
i meant switching between states.. so far i have this; Set icon_state to an empty string to set it back to its original. And for switching icon states, flick() does the trick. |