Good, thanks for the clarfications 
But I see, none of these uses would actually make sense as a one-liner, the DrawingSurface in the first example must be released and hence be stored in a variable, and the character in the second example must be checked for null anyways... so yeah, it's probably to prevent people from running into problems with this in the first place.
Using sin/cos would be an alternative to draw a circle outline, yes. I just hoped there would be an undocumented function to set the border color separately or something. Maybe in the next release... (along with functions to draw polygons, ellipses and bezier curves... although I'm not sure I'd need them too often)

Quote from: Khris on Wed 06/04/2011 14:37:52Ah yeah, defining it just for the room makes more sense in this case.
Yes, you need a global sprite (or more precisely: a non-"local to the function" sprite), otherwise you end up with sprite 0.
Declaring the sprite just above the function will suffice.
Quotea) Afaik, yes. The reason I take it is that using .Now queries the system for the time/date once, storing all values in the members of the DateTime object, creating a consistent dataset of one precise moment.Though this wouldn't apply in other cases, like "mySprite.GetDrawingSurface().DrawCircle(...)" or "Character.GetAtScreenXY(...).SetAsPlayer()", which you also can't write.
While a few loops between queries to e.g. DayTime.Hour and DayTime.Minute usually don't skew the result, you could in theory end up with 7:00 when it is in fact 8:00 (because the clock just switched from 7:59 (hour = 7) to 8:00 (minute = 0)).
But I see, none of these uses would actually make sense as a one-liner, the DrawingSurface in the first example must be released and hence be stored in a variable, and the character in the second example must be checked for null anyways... so yeah, it's probably to prevent people from running into problems with this in the first place.
Using sin/cos would be an alternative to draw a circle outline, yes. I just hoped there would be an undocumented function to set the border color separately or something. Maybe in the next release... (along with functions to draw polygons, ellipses and bezier curves... although I'm not sure I'd need them too often)