Discuss Scratch

redplanet2001
New Scratcher
1 post

How do I make one sprite change another when clicked?

I have a spinner and first you click on the spinner and then hit the done button to switch backgrounds. How do I hide the spinner by clicking on the button (2 different sprites)?
scubajerry
Scratcher
1000+ posts

How do I make one sprite change another when clicked?

when this sprite clicked
broadcast [Hide Sprite v]
//

when I receive [Hide Sprite v]
hide
FlameGames
Scratcher
29 posts

How do I make one sprite change another when clicked?

when green flag clicked
forever

wait until <touching [mouse pointer v]?>
if <mouse down?> then
broadcast [hide v]

when I receive [hide v]
hide
end

end
end
This way you can only click on the sprite when the program is running.
P444
Scratcher
500+ posts

How do I make one sprite change another when clicked?

Please don't necropost.
kbrookman15
Scratcher
13 posts

How do I make one sprite change another when clicked?

i'm trying to make my scratch change when click in a game but i'm having no luck. the game i'm trying to make is a football type simulator (2d) but i want to be able to change player in game (like fifa does)



if you can respond and help that would be great

Last edited by kbrookman15 (March 28, 2017 08:47:25)

IsabellaASC
Scratcher
1 post

How do I make one sprite change another when clicked?

Hello

Do do this u must,
In your sprites scripts, grab a block that says ‘when this sprite clicked’ then under that block put the ‘hide’ block, under that put a ‘broadcast and wait block’ on that block it has a little arrow click on that, then click ‘new message’ then write what you want it to be called. Then with the other sprite/costume take out the block that says ‘ when i receive…’ click the arrow on that block then click on what your message was. After that block put a block called ‘show’.

goodbye _meow_ _gobo_

Powered by DjangoBB