Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Clicker games
- Imakethings0
-
3 posts
Clicker games
Can you elaborate on what problems you are experiencing
- cs2627883
-
100+ posts
Clicker games
What do you expect us to do with that? Please think before posting. What do you want us to do, magically make all the problems go away? Please give us some information on the problems. Tell us what the code is, what is should do, and what it does do. Or, share the project and give us the link. I have some problems in my game…
- ThunderElitesWill
-
2 posts
Clicker games
https://turbowarp.org/648582092
Here. I wanted to create a shop but I can't find it.
Here. I wanted to create a shop but I can't find it.
- TheWarForTheRepublic
-
50 posts
Clicker games
Its a very simple process.
Create a separate sprite called shop and make a button for it. Now make a shop gui which is a background which should be a seperate sprite. Create a exit button on what ever corner you want which should also be a seperate sprite.
Now you want to add a “on click, hide” to the shop gui and exit button. Add a “on click, show” to the shop button.
Once you do that, add a “when sprite is clicked” to the shop button and then under that, add a broadcast message and select new and type whatever you want, lets say for example “ShopButtonClicked” and add a hide block under that broadcast block.
Now add "receive “ to the shop gui and exit button. Now add a show block to both shop gui and exit button.
Boom, you just created a shop that when clicked button, it shows but how do you exit it? Very simple indeed. Go over to the exit button and add a ”sprite get clicked“ block and add another broadcast message and add a hide button there. Go over to the shop gui and add a ”when i receive ". Just add a hide block there.
Go over to the shop button and do the same thing except this time add a show block. Boom.
From that point, you can literally add on by adding sprites with upgrades of your choice.
You can find a example here
Or here if the link above doesn't work for some reason: https://scratch.mit.edu/projects/648837052/
You can ask me a question if you need to.
Create a separate sprite called shop and make a button for it. Now make a shop gui which is a background which should be a seperate sprite. Create a exit button on what ever corner you want which should also be a seperate sprite.
Now you want to add a “on click, hide” to the shop gui and exit button. Add a “on click, show” to the shop button.
Once you do that, add a “when sprite is clicked” to the shop button and then under that, add a broadcast message and select new and type whatever you want, lets say for example “ShopButtonClicked” and add a hide block under that broadcast block.
Now add "receive “ to the shop gui and exit button. Now add a show block to both shop gui and exit button.
Boom, you just created a shop that when clicked button, it shows but how do you exit it? Very simple indeed. Go over to the exit button and add a ”sprite get clicked“ block and add another broadcast message and add a hide button there. Go over to the shop gui and add a ”when i receive ". Just add a hide block there.
Go over to the shop button and do the same thing except this time add a show block. Boom.
From that point, you can literally add on by adding sprites with upgrades of your choice.
You can find a example here
Or here if the link above doesn't work for some reason: https://scratch.mit.edu/projects/648837052/
You can ask me a question if you need to.
- Discussion Forums
- » Help with Scripts
-
» Clicker games