Pages: 1
Topic closed
Okay, probably the most BASIC question I've ever asked, but I just don't know how to do it! XD
Easy, right? I just need the mouse to draw when you hold it down and drag. So many projects with this script, but if you could give the basic script to me here, I would appreciate it SO much. Thanks in advance.
- DewleafWolf
Offline
Make a tiny pixel sprite with ghost effect at 100 that follows the mouse. Make it so that if the mouse is down put the pen down otherwise keep it up. Happy to help!
Offline
ImagineIt wrote:
Make a tiny pixel sprite with ghost effect at 100 that follows the mouse. Make it so that if the mouse is down put the pen down otherwise keep it up. Happy to help!
Yea that is the MOST basic way possible
Offline
Well, I'd just hide the sprite instead of ghosting it
Offline
MoreGamesNow wrote:
Well, I'd just hide the sprite instead of ghosting it
Oh yeah! I forgot that the pen still works if it's hidden!
Offline
Could you give me the script for it? It doesn't seem to work for me.
Offline
DewleafWolf wrote:
Could you give me the script for it? It doesn't seem to work for me.
Look at my paint project (click the "my latest project" link in my signature).
Offline
<when green flag clicked>
<hide>
<forever>
<if><mouse down?>
<pen down>
<else>
<pen up>
<end>
<end>
Last edited by MoreGamesNow (2011-08-14 08:50:24)
Offline
That's what I have. I guess that part works, the problem is getting the pen feature to show up when Paint is opened, (It is a computer simulation. Paint is one of the programs.) and clear when closed. If anyone needs me to post the demo of the project for help, I can.
Offline
put when I receive paint instead of when flag clicked and put repeat until paint = 0 instead of forever
Then put when I receive menu hide.
Offline
Okay! Thanks. I'll try that.
Offline
Oh, and I'm not sure if this is a problem, but you can't paint over a sprite, so if your painting-window is a sprite, make sure the canvas part is clear to the background.
P.S. When making mine, I made a sprite the covered the toolbar, this worked great for preventing the user from drawing beyond the boundaries of their window and into the toolbar.
Offline
Also, the sprite will get dragged in the normal view. use presentation view.
Offline
MoreGamesNow wrote:
Oh, and I'm not sure if this is a problem, but you can't paint over a sprite, so if your painting-window is a sprite, make sure the canvas part is clear to the background.
P.S. When making mine, I made a sprite the covered the toolbar, this worked great for preventing the user from drawing beyond the boundaries of their window and into the toolbar.
I never even thought of the toolbar part! Thanks!
As for the first answer, yes, the window is a sprite so that may be the problem... I'll try to fix it.
Offline
Why would you want it to be pen script?
Offline
DewleafWolf wrote:
MoreGamesNow wrote:
Oh, and I'm not sure if this is a problem, but you can't paint over a sprite, so if your painting-window is a sprite, make sure the canvas part is clear to the background.
P.S. When making mine, I made a sprite the covered the toolbar, this worked great for preventing the user from drawing beyond the boundaries of their window and into the toolbar.I never even thought of the toolbar part! Thanks!
As for the first answer, yes, the window is a sprite so that may be the problem... I'll try to fix it.
Easy way to fix: Hide all of the other sprites when paint is opened (Except startbar) And make a little gap on ur sprite, so the startbar will fit over it. Then, make the paint sprite the background. This is one of the most easyest ways I managed to do it.
Offline
Topic closed
Pages: 1