Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do I make a sprite appear when the red button is pressed?
- MrMann2694
-
New Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
I simply want it so when someone presses the red button to stop the project, a sprite I made appears.
- P0rpleStar
-
Scratcher
100+ posts
How do I make a sprite appear when the red button is pressed?
Try this:
The sprite will stay invisible for the entire time the project runs, but will turn visible once the project stops.
when green flag clicked
forever
go to front
set [Ghost] effect to (100)
end
The sprite will stay invisible for the entire time the project runs, but will turn visible once the project stops.
Last edited by P0rpleStar (March 1, 2024 14:23:04)
- MrMann2694
-
New Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
Try this:when green flag clicked
forever
go to front
set [Ghost] effect to (100)
end
The sprite will stay invisible for the entire time the project runs, but will turn visible once the project stops.
I tried that out, it didn't work. I realize that trying to make it appear when the red button's clicked would actually break more code.
- TomasMoor
-
Scratcher
6 posts
How do I make a sprite appear when the red button is pressed?
try this:
when green flag clicked
change [Ghost ] effect by (88)
when this sprite clicked
forever
change [Ghost] effect by (-2)
end
Last edited by TomasMoor (March 1, 2024 15:24:54)
- BionicBoy554
-
Scratcher
1000+ posts
How do I make a sprite appear when the red button is pressed?
A lot of people use this
Then, add this
when green flag clickedThis forces the timer to be at 0 forever until the code stops.
hide
forever
reset timer
end
Then, add this
when [timer v] > (0)When the code stops, it allows the timer to go above 0 and trigger the code.
show
- Ghxstifyy
-
Scratcher
100+ posts
How do I make a sprite appear when the red button is pressed?
when green flag clicked
reset timer
set [Timer] to (timer)
when [Timer] > (0.1)
show
- D_Man1216
-
Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
Try this:when green flag clicked
forever
go to front
set [Ghost] effect to (100)
end
The sprite will stay invisible for the entire time the project runs, but will turn visible once the project stops.
- D_Man1216
-
Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
Try this:when green flag clicked
when stop cilcked
forever
go to front
set [Ghost] effect to (100)
end
The sprite will stay invisible for the entire time the project runs, but will turn visible once the project stops.
- Rubikito05
-
Scratcher
100+ posts
How do I make a sprite appear when the red button is pressed?
Here is the code
when green flag clicked
forever
reset timer
end
when [ da timer v] > (0)
show
- thedumbestofallrats
-
Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
im not sure which one i use. People are sending so many ways they make a sprite appear when the red button is pressed.
- thedumbestofallrats
-
Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
i know this may be useless in some cases, but what if scratch added a “when (red sign) clicked” block?
- The_Floppy_Disc
-
Scratcher
100+ posts
How do I make a sprite appear when the red button is pressed?
i know this may be useless in some cases, but what if scratch added a “when (red sign) clicked” block?That will not happen because it is on the official list of rejected suggestions. Try using the script with
set [ghost v] effect to (100)because that is the easiest way to do it.
- Zozo_The_Fox
-
Scratcher
2 posts
How do I make a sprite appear when the red button is pressed?
Hi do any of u guys know the hack for a stop button clicked
?
? say [Bye!]
- dem_bot
-
Scratcher
1000+ posts
How do I make a sprite appear when the red button is pressed?
Hi do any of u guys know the hack for a stop button clickedyes but pls don't necropost.?
say [Bye!]
- tidelgl
-
Scratcher
100+ posts
How do I make a sprite appear when the red button is pressed?
when flag clicked
hide // hide when the project starts
when I receive [Stop! v]
show // show when Stop button is clicked!
when this sprite clicked
broadcast [Stop! v] and wait // tell everyone to stop
stop [all v] // stop everything
- cosmosaura
-
Scratch Team
1000+ posts
How do I make a sprite appear when the red button is pressed?
Topic closed due to necroposting.
- Discussion Forums
- » Help with Scripts
-
» How do I make a sprite appear when the red button is pressed?