Discuss Scratch

happyclouds
New to Scratch
2 posts

Disappearing objects for the next level

I need to select a character and if it's selected (I have 3) I want the others to disappear. I'm trying to handle this for hours, tried to define a variable and if, for example, character 1 is selected, variable becomes 1, and I have if conditions like if d=1 then show etc… any ideas?
gregory9
Scratcher
100+ posts

Disappearing objects for the next level

Sprite 1
when this sprite clicked
broadcast [selected 1 v]
other sprites
when I receive [selected 1 v]
hide
sprite 2
when this sprite clicked
broadcast [selected 2 v]
other sprites
when I receive [selected 2 v]
hide
etc.
Just make sure that when it receives its own broadcast it doesn't hide.

Use DuckDuckGo instead of Google, Bing, or Yahoo

Check out Coursacado, and SBX Share!

I am gw90 on GitHub
happyclouds
New to Scratch
2 posts

Disappearing objects for the next level

Thanks so much! Worked. I have another question, my objects move when I click them if accidentaly moved mouse slightly, I want them to stay still. How can I do it?
gregory9
Scratcher
100+ posts

Disappearing objects for the next level

Use it in full screen or view the project page. That can only happen in the editor.

Last edited by gregory9 (Aug. 11, 2014 15:01:25)


Use DuckDuckGo instead of Google, Bing, or Yahoo

Check out Coursacado, and SBX Share!

I am gw90 on GitHub

Powered by DjangoBB