I've stumbled across this problem many times, and recently had to come back to it.
How would I go about flicking say, a top layer of the icon? If it's y-offset is 32.
ID:158032
![]() Nov 14 2009, 7:31 pm
|
|
![]() Nov 14 2009, 8:17 pm
|
|
Why don't you put the full icon into one instead of using multiple tiles?
|
The icon state of any overlays will match the base object's icon state, including from flick(), provided no icon_state is set for the overlays.
|
Here's some code I just whipped together:
world/mob = /mob/Guy1 I tried your method, Garthor, where they both use the same icon state. It doesn't work. |
You must've misinterpreted what I've said. For example, this is what I mean:
obj/testthing Note that the obj has no icon_state specified. As a result, its icon_state will match the base object's, even when flick()ing. What this means, however, is that it needs its own, separate icon file. |
I'm not sure I completely understand-- in the tests I've done with your code and mine, the bottom icon only flicks.
Here is my new revamped code: mob |
As I've said, if you have an icon_state="anything" line, it will not work, as the icon_state will always match that. However, if you do not have that line, the icon_state will instead match that of the base object.
|
Your overlays have specified icon states.
Garthor is saying that in order for your overlay to flick with your icon, it must have no icon state specified. |