Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you register a click on a sprite?
- Zygorithm
- Scratcher
49 posts
How do you register a click on a sprite?
I put the “when this sprite clicked” block and attached other blocks below the Profile sprite, but clicks aren't registering. And this sprite is very weird. I can't even drag it in the editor. It just drags the sprite underneath instead.
What am I doing wrong? It worked fine last month.
http://scratch.mit.edu/projects/3047623
What am I doing wrong? It worked fine last month.
http://scratch.mit.edu/projects/3047623
- Theprodigy
- Scratcher
100+ posts
How do you register a click on a sprite?
I tried it out, and it works just fine. Are you still having this problem?
- Zygorithm
- Scratcher
49 posts
How do you register a click on a sprite?
Yes, it still doesn't work. Maybe it's specific to my computer? Could be a flash player glitch.
- RandomPerson1789
- Scratcher
100+ posts
How do you register a click on a sprite?
Do this:
when green flag clickedInstead of this:
forever
if <<mouse down?> and <touching [Mouse Pointer v] ? >> then
...
end
end
when this sprite clickedIt should work now.
...
Last edited by RandomPerson1789 (July 11, 2014 20:15:16)
- Zygorithm
- Scratcher
49 posts
How do you register a click on a sprite?
Was there an issue with click detection?
- Zygorithm
- Scratcher
49 posts
How do you register a click on a sprite?
Update: It only seems to be broken on a few devices. My Samsung notebook couldn't click the sprite but the Lenovo could. Strange.
- Zacshap21
- Scratcher
100+ posts
How do you register a click on a sprite?
I was having a problem earlier today too with the mouse touching detection system on my laptop too. When I went on my computer it worked, and now it's working fine on my laptop too.
- Discussion Forums
- » Help with Scripts
- » How do you register a click on a sprite?