Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » One sprite multiple buttons
- spencerwootton
-
Scratcher
2 posts
One sprite multiple buttons
How do you make multiple buttons that work with one sprite?
- gor-dee
-
Scratcher
1000+ posts
One sprite multiple buttons
Clones! I have a menu button project here https://scratch.mit.edu/projects/294649534/ that my be of use
- deck26
-
Scratcher
1000+ posts
One sprite multiple buttons
You can also have a single multi=button costume and look at the mouse position when the mouse is clicked.
Simple example - a button left and right of centre. If the sprite is clicked and x is negative you know it was the left hand button.
Simple example - a button left and right of centre. If the sprite is clicked and x is negative you know it was the left hand button.
- Teddyburr_Drawz
-
New Scratcher
1 post
One sprite multiple buttons
How do I make a start screen with two buttons? For example, on the start screen I want there to be a button that brings you to the controls and a button that brings you to the game. But say you click on the controls button, it brings you to the controls but you can still see the play button on top of the backdrop, how do I make the other sprite(Play button) go invisible?


Last edited by Teddyburr_Drawz (Oct. 22, 2020 23:50:20)
- unicornstartower89
-
Scratcher
100+ posts
One sprite multiple buttons
You can use the

when I receive [show controls v]or the
when backdrop switches to [controls v]blocks for the events. Then you use the:
hideblock to make the play button disappear. If you want to make the play button reappear when you go back to the start screen, then you can use the
when backdrop switches to [start screen v]script. Hope that helped
show

- CalebJ122
-
Scratcher
1 post
One sprite multiple buttons
Im working on a game and i want a shop button and then have the same sprite change to a back button?
Last edited by CalebJ122 (May 19, 2021 18:40:38)
- Theo_1er
-
Scratcher
500+ posts
One sprite multiple buttons
when this sprite clicked
if <(shop) = [closed]> then
set [shop v] to [open]
switch costume to [back v]
else
set [shop v] to [closed]
switch costume to [shop v]
end
Last edited by Theo_1er (May 19, 2021 19:33:59)
- bbmonkey100
-
Scratcher
100+ posts
One sprite multiple buttons
You can use theU can just delete the clone xDwhen I receive [show controls v]or thewhen backdrop switches to [controls v]blocks for the events. Then you use the:hideblock to make the play button disappear. If you want to make the play button reappear when you go back to the start screen, then you can use thewhen backdrop switches to [start screen v]script. Hope that helped
show
- SYTH639
-
Scratcher
1 post
One sprite multiple buttons
Can anyone tell me how to make a running animation using 5 buttons! Plzzzzzzzzzzz help me. Plzzzzzzzzzzzz.
- cosmosaura
-
Scratch Team
1000+ posts
One sprite multiple buttons
Closed to prevent future necroposts.
- Discussion Forums
- » Help with Scripts
-
» One sprite multiple buttons










