Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » One sprite multiple buttons
- spencerwootton
-
2 posts
One sprite multiple buttons
How do you make multiple buttons that work with one sprite?
- gor-dee
-
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
-
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
-
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
-
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
-
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
-
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
-
100+ posts
One sprite multiple buttons
U can just delete the clone xD You can use thewhen 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
-
1 post
One sprite multiple buttons
Can anyone tell me how to make a running animation using 5 buttons! Plzzzzzzzzzzz help me. Plzzzzzzzzzzzz.
- cosmosaura
-
1000+ posts
One sprite multiple buttons
Closed to prevent future necroposts.
- Discussion Forums
- » Help with Scripts
-
» One sprite multiple buttons