I am making an OS, and the 'Draw' function isn't working properly.
When clicked, it hides, then follows the mouse pointer, drawing red lines behind it. When I clicked the X button, It would still follow the mouse, even when it is able to be seen, and would still draw! I'm all out of ideas to fix the script, but maybe someone else has a drawing script that coul help me.
Offline
Try making a variable call "drawing" (or something similar), and when you open the drawing program, set it to 1. When you click the X, set the variable to 0. Then enclose your sprite's drawing scripts in Forever if [drawing = 1].
Does that make sense? Tell me if it works!
Last edited by Harakou (2010-07-07 19:42:57)
Offline
I've noticed that sometimes when I draw in pen size 1 and not in presentation mode, the lines look broken and messed up but if I go into presentation mode, they look perfect.
Offline
Locomule wrote:
I've noticed that sometimes when I draw in pen size 1 and not in presentation mode, the lines look broken and messed up but if I go into presentation mode, they look perfect.
Maybe it has something to do with how many pixels can be displayed in the preview window? If it can't display all the pixels in the project, it would have to compress the image, resulting in loss of pixel detail and those broken lines. Same as with decreasing a sprite's size with the "Set Size to [ ]" block.
Part of the reason I suspect this is because I'm not noticing that on my computer, so it might be related to the screen's resolution.
Correct me if I'm wrong.
Offline
coolstuff wrote:
I am fairly certain that theproblem is that the pen is still down when you are clicking the "x" button...
But from what others have said it seems that that is not te issue.
Now that I think about it, just putting the pen up works fine and is probably a lot easier. My idea was that not having the pen object's scripts function at all if not needed would reduce lag.
Offline