ID:263377
 
Code:
turf
MouseDrag(turf/a,turf/b)
if(usr.building && usr.buildmethod == "Block")
for(var/turf/T in block(a,b))
T.overlays+=image('dither.dmi')
turf
MouseDrop(turf/a,turf/b)
if(usr.building && usr.buildmethod == "Block")
for(var/turf/T in block(a,b))
var/atom/A = new usr.buildtype(T)
A.icon = day ? 'Day Turfs.dmi':'Night Turfs.dmi'
T.overlays=null


Problem description:

Well, I am trying to make a building system using mousedrag and drop, The problem is When I am making the rectangle It adds overlays from mousedrag. But If I make the rectangle smaller than its greatest area, I don't know how to delete those overlays. Doe's anyone know how?
Wouldnt it be T.overlays-=image('dither.dmi')
or T.overlays.Remove(image('dither.dmi'))
~Grand~
In response to KillerGrand
Either way works.
In response to Xx Dark Wizard xX
Ok.
~Grand~
In response to KillerGrand
<bump>
In response to Xx Dark Wizard xX
Bump rules:
- No bumping if topic is < 1 day old (less than if you forgot what < was).

- No bumping if still on the first page.

Both entry of the above must be completed in order to bump, now you must be annihilated.

- GhostAnime