ID:176783
 
Ok I haven't been around so my memory with Byond coding isn't good. Now how would I make an object or turf change to a different icon\state Every so much time lets say like 5 minutes. Yes very Newbieish but your help would be nice.


CodesterZ
Codesterz wrote:
Ok I haven't been around so my memory with Byond coding isn't good. Now how would I make an object or turf change to a different icon\state Every so much time lets say like 5 minutes. Yes very Newbieish but your help would be nice.

Something like this would work:
obj/mimic
New()
..()
ChangeIcon()

proc/ChangeIcon()
icon=pick('tree.dmi','rock.dmi','item.dmi')
icon_state=pick(icon_states(icon))
spawn(3000) // in 5 minutes
ChangeIcon() // call this proc again

Lummox JR