Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » idk how to make it so when a variable equals 5 the backdrop switches
- RJN_HMB
- Scratcher
17 posts
idk how to make it so when a variable equals 5 the backdrop switches
help
- deck26
- Scratcher
1000+ posts
idk how to make it so when a variable equals 5 the backdrop switches
Various options - easiest is probably just to have a script that waits until the variable is equal to 5 but if the value might miss 5 (eg you can score 2 points at once) better to check for not less than 5.
- NamePending_
- Scratcher
100+ posts
idk how to make it so when a variable equals 5 the backdrop switches
when green flag clicked
wait until <(varialbe) = (5)>
switch backdrop to [backdrop v]
Welcome to my signature!
Was this post helpful? If so, please consider checking out my profile!
say pasta in it please
100 POSTS YESSIRRRRRRRR
- BigNate469
- Scratcher
500+ posts
idk how to make it so when a variable equals 5 the backdrop switches
Orwhen green flag clicked
wait until <(varialbe) = (5)>
switch backdrop to [backdrop v]
when green flag clicked
wait until <[5] < (variable)>
switch backdrop to [something v]
Highlight any part of this signature and press ctrl+shift+down arrow to see the rest of it
foreverPlease read the list of Officially Rejected Suggestions before posting a suggestion for Scratch! 100th post
if <person asks [what's a signature] :: sensing> then
Redirect to [https://en.scratch-wiki.info/wiki/Signature] :: motion
end
end
This signature is designed to be as helpful as possible.
View all of the topics you've posted in:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=topics
View all of your posts:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=posts
Forum tips:
Don't title topics something like “HELP ME!!!”. It's not helpful, and won't get you as many responses.
Don't post in topics where the latest post is over ~2 months old, unless you have something critical to add. Especially in topics that are several years old- it isn't helpful, and is known as necroposting.
Don't post unrelated things in topics, including questions of your own. Make a new topic for your questions.
You can use the
[code] and [/code]
You can use the
[color=color name or hexadecimal value here] and [/color]
Little-known Scratch URLs:
scratch.pizza (redirects to main page)
https://scratch.mit.edu/projects/PROJECT ID HERE/remixtree (replace “PROJECT ID HERE” with project id number. Shows all the remixes of the project, and the remixes of those projects, and the remixes of those projects, and so on, as a chart. Link currently redirects to one of my projects)
- Discussion Forums
- » Help with Scripts
- » idk how to make it so when a variable equals 5 the backdrop switches