Discuss Scratch

KitsuneCalifornia
New to Scratch
16 posts

How do you make it so that when one costume is changed, the other sprite's costumes change aswell? (MESSG IMPORTANT)

I'm back! Again. This time, with another stupid question! I'm wondering if, for example, you have four dots. You want that, when the play clicks one, which turns it blue, the others turn orange and vice versa around all of the dots! I've tried things like:
if <(costume #) = []> then 
switch costume to [ v]


else
broadcast [ v]
switch costume to [ v]
end
when I receive [ v]
switch costume to [ v]
Still can't figure it out though! If anybody actually posts here, thanks!
Edit: as well* in title

Last edited by KitsuneCalifornia (May 4, 2024 12:44:18)

Roblox888i
Scratcher
1000+ posts

How do you make it so that when one costume is changed, the other sprite's costumes change aswell? (MESSG IMPORTANT)

HWS is a better fit for this topic, anyways

Try

when this sprite clicked
switch costume to (pick random (MIN) to (MAX COSTUMES) :: operators)
broadcast [ v]

when I receive [ v]
switch costume to (pick random (MIN) to (MAX COSTUMES))

Last edited by Roblox888i (May 4, 2024 13:04:12)


Below this little line ^ is my signature, you can edit it by going to scratch.mit.edu/discuss/settings/YOURUSERHERE/ also highlight a part and do CNTRL+SHIFT+DOWN to scroll down.



Roblox888i
===========================================================================================================
| Ocular Profile | Scratch Profile | ScratchStats Profile | Github Profile |
=================================
| | Scratch Wiki Profile | |
===========================================================================================================


REST OF SIGNATURE NOT DONE
KitsuneCalifornia
New to Scratch
16 posts

How do you make it so that when one costume is changed, the other sprite's costumes change aswell? (MESSG IMPORTANT)

Roblox888i wrote:

HWS is a better fit for this topic, anyways

Try

when this sprite clicked
switch costume to (pick random (MIN) to (MAX COSTUMES) :: operators)
broadcast [ v]

when I receive [ v]
switch costume to (pick random (MIN) to (MAX COSTUMES))
Thx! I'll try that. Hope it works!
KitsuneCalifornia
New to Scratch
16 posts

How do you make it so that when one costume is changed, the other sprite's costumes change aswell? (MESSG IMPORTANT)

KitsuneCalifornia wrote:

Roblox888i wrote:

HWS is a better fit for this topic, anyways

Try

when this sprite clicked
switch costume to (pick random (MIN) to (MAX COSTUMES) :: operators)
broadcast [ v]

when I receive [ v]
switch costume to (pick random (MIN) to (MAX COSTUMES))
Thx! I'll try that. Hope it works!
TYSM IT WORKED!!!
(also I'll make sure to look for ‘HWS’ the next time I post a question like this)

Powered by DjangoBB