Discuss Scratch

darkhomestudios
Scratcher
27 posts

how to detect clone clicks on certain clones?

im making a game with 11 buttons in one sprite but i cant find how to detect a single one. can someone help
deck26
Scratcher
1000+ posts

how to detect clone clicks on certain clones?

Either a local cloneID variable where each clone has a separate value or use the mouse x and y to work out where the user clicked and therefore which button.
Sniffles_Rule
Scratcher
42 posts

how to detect clone clicks on certain clones?

if <<touching [mousepointer] ?> and <mouse down?>> then
do script
end
8bitrkt
Scratcher
500+ posts

how to detect clone clicks on certain clones?

something like this? Note that you can change “level”, “button” and the amt of repeats, also note that the broadcast block in this case is broadcasting “Level #”



Scratch-Minion
Scratcher
1000+ posts

how to detect clone clicks on certain clones?

This is a project that shows how to set up “for this sprite only” variables so that you can detect which clone is being clicked: https://scratch.mit.edu/projects/170818262/



As it says in the Project Instructions: You MUST select “For this sprite only” when you creating the variable to identify the clones.

Powered by DjangoBB