This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-07 00:42:49

hsc
Scratcher
Registered: 2009-04-03
Posts: 3

pen and mouse down problems?

Hi,

I just uploaded a simple drawing application (click and move mouse to draw a line). This works fine when it's uploaded to the scratch website, but doesn't work when I run this on my iMac or my PC (It sometimes starts to draw, but soon stops drawing even though the mouse is still being pressed.)

Here's my example:
http://scratch.mit.edu/projects/hsc/480322

Thanks,
H

Offline

 

#2 2009-04-07 00:52:35

hsc
Scratcher
Registered: 2009-04-03
Posts: 3

Re: pen and mouse down problems?

Also, when you press the mouse, it starts drawing, then stops. When you release the mouse button, it leaves a small dot.

Offline

 

#3 2009-04-07 01:21:24

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: pen and mouse down problems?

Have you tried running it locally in presentation mode?


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#4 2009-04-07 05:19:29

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: pen and mouse down problems?

I think BoltBait has the answer here.  When you try and run projects that use the mouse in development mode (with the scripts showing), the Scratch program tends to get confused about what you are trying to do when you click the mouse.  Sometimes it "thinks" that you want to drag the sprite around on the screen to reposition it.   The solution is to test your code in Presentation mode (full screen mode).


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2009-04-07 12:03:49

hsc
Scratcher
Registered: 2009-04-03
Posts: 3

Re: pen and mouse down problems?

Thanks! Using presentation mode does work. It also works correctly when I use single-stepping mode.

I still think it's a bug. It was hard for me to figure out the problem, so I imagine it would be tough for kids also.

Offline

 

Board footer