ID:266817
 
okok i wanna make it so that when a person puts their mouse over a turf, theirs a square around it.
i thought about osmething like this
turf.MouseEntered()
turf.overlays += obj/square
im not sure, and i dont have byond right now to try it, but maybe someone would explain it how to use it or show me a demo...
thanks
turf/MouseEntered()
turf.overlays += obj/square
turf/MouseExited()
turf.overlays -= obj/square
This should work, although you could make the square an image instead of creating an object. (Instead of obj/square put image('square.dmi'))
In response to Crispy (#1)
Crispy wrote:
turf/MouseEntered()
> turf.overlays += obj/square
> turf/MouseExited()
> turf.overlays -= obj/square
>
This should work, although you could make the square an image instead of creating an object. (Instead of obj/square put image('square.dmi'))

Even better, usr << image('square.dmi'). Then only the usr sees it.
In response to Garthor (#2)
thanks