Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you turn on something with a push of a button?
- DylanDaDoge
- Scratcher
9 posts
How do you turn on something with a push of a button?
Hello. I was wondering how to make the
turn on with the push of a button. [url=https://scratch.mit.edu/projects/190545219/]My project[/url] has a switchable backround, and after the title screen I wanted it to show the name of the backround. PLZ HELP!!!
(backdrop name)
when I receive [ this question]
broadcast [ answer]
- FuturePr0
- Scratcher
100+ posts
How do you turn on something with a push of a button?
It depends what type of button you want, plus you should put this into help with scripts, not new scratchers. because this is to introduce new scratchers, not ask for help with scripts. help with scripts is help with coding. Anyways, if its a clickable button in your project it would be:
when this sprite clicked
broadcast [Message you want v]
when I receive [Message you want v]Or:
then do what you want it to do here
if <key [your key here v] pressed?> then
do the thing you want it to do.
BRUH
- DylanDaDoge
- Scratcher
9 posts
How do you turn on something with a push of a button?
What I mean is a command that you have to check, like It depends what type of button you want, plus you should put this into help with scripts, not new scratchers. because this is to introduce new scratchers, not ask for help with scripts. help with scripts is help with coding. Anyways, if its a clickable button in your project it would be:when this sprite clicked
broadcast [Message you want v]when I receive [Message you want v]Or:
then do what you want it to do hereif <key [your key here v] pressed?> then
do the thing you want it to do.
(backdrop name)
when I receive [ this question]
broadcast [ answer]
- deck26
- Scratcher
1000+ posts
How do you turn on something with a push of a button?
You're not making yourself clear. Please take time to describe what you want in more detail and if possible share a relevant project.
- Discussion Forums
- » Help with Scripts
- » How do you turn on something with a push of a button?