ID:141739
 
Code:
obj
circle
icon = 'icons.dmi'; icon_state = "circle"
MouseEntered(A,B,C)
if(C == "left")
if(src.icon_state == "circle")
src.icon_state = "circle2"
else
src.icon_state = "circle"
else
return


Problem description:

I want it to allow the user to click+drag to draw lines, but it isn't working. C is supposed to be the params argument, as stated in the DM Reference, but when I drag on the screen, it all stays blank.

What's the circle for ?

And if you want Click + Drag why use MouseEntered()?

Be more specific.
The params argument isn't only a single value, it's multiple values in list2param() format.

MouseEntered(A,B,C)
C = params2list(C)
if("left" in C)
// Do stuff
In case you didn't know, MouseEntered isn't called when the mouse enters tiles while held down. That's what the over_location(I think, haven't checked) argument in MouseDrag is for.
In response to Nadrew
Thanks. Wasn't sure what format the params were in.