/*
These are simple defaults for your project.
*/
#include <kaiochao\shapes\shapes.dm>
world
fps = 25 // 25 frames per second
icon_size = 32 // 32x32 icon size by default
view = 6 // show up to 6 tiles outward from center (13x13 view)
turf
icon = 'shapes.dmi'
icon_state = "rect"
// Make objects move 8 pixels per tick when walking
mob
step_size = 8
appearance_flags = KEEP_TOGETHER
icon = 'shapes.dmi'
icon_state = "rect"
color = rgb(255,0,0)
Login()
. = ..()
//icon_state is not being inherited! (KEEP_TOGETHER doesn't matter)
var/image/i = image('shapes.dmi',src,layer=FLOAT_LAYER)
i.color = rgb(0,255,255)
world << i
obj
step_size = 8
Repost from http://www.byond.com/forum/?post=2177204, but separating the two issues into two bug reports. Test case (for both): http://files.byondhome.com/Kamuna/TestCases/ ImageTestCase_src.zip
Problem description:
Images' icon_state, no matter whether KEEP_TOGETHER is on or off, does not change with the loc even if icon_state is set to null. Easy workaround: Change all icon_states at once, make a proc or define to do so.