Discuss Scratch

kola2
Scratcher
100+ posts

Mouse Down sensor broken!

Hey, so recently i've been working on this Drawing Recorder, but when i was about to add the “Mouse down sensor” the hole thing broke, and i have no idea why!

Can someone help me please!
The link to the project is here —> http://scratch.mit.edu.ezproxyberklee.flo.org/projects/11119559/

Just reply to this topic with information on what i've done wrong, thanks

-kola2
Exhelah
Scratcher
100+ posts

Mouse Down sensor broken!

I can't find the problem, but check every sprite that has to do with the mouse down sensor. It'd help if you added a comment where the sensor script is, so I or someone else could diagnose it. Also, more info would help.

BTW, you English is just fine. Only little grammatical mistakes are visible. That's pretty good.

-Skalled Exhelah Phoenix
drmcw
Scratcher
1000+ posts

Mouse Down sensor broken!

One problem is that downmouserec list isn't being cleared so doesn't synchronise with the x and y lists. In fact the downmouserec list is your problem, even deleting it at the beginning doesn't really help as you store mouse up and down events in it but only store mouse coordinates when the mouse is down so they never synchronise. So either store mouse x and y when the mouse is up as well or just remove the downmouserec stuff.

Last edited by drmcw (June 28, 2013 19:45:42)

kola2
Scratcher
100+ posts

Mouse Down sensor broken!

Nevermind i think i have fixed it now, but now the drawing thing is totally broken..

Powered by DjangoBB