Discuss Scratch

AlertMango825
Scratcher
46 posts

Adding shop to clicker game

I making my 2nd clicker game and I wanted to add a shop to it. May someone give me a full tutorial?
gdfsgdfsgdfg
Scratcher
1000+ posts

Adding shop to clicker game

make a menu
when this sprite clicked // in the shop button
broadcast [shop v]
and then on a button and other stuff here:
when I receive [shop v]
show
its a simple way for opening a shop
AlertMango825
Scratcher
46 posts

Adding shop to clicker game

gdfsgdfsgdfg wrote:

make a menu
when this sprite clicked // in the shop button
broadcast [shop v]
and then on a button and other stuff here:
when I receive [shop v]
show
its a simple way for opening a shop
ty!
mysinginmonsters
Scratcher
100+ posts

Adding shop to clicker game

If you're having trouble coding this, this belongs in help with scripts. If you're looking for ideas on how it will work, this belongs in project ideas.
AlertMango825
Scratcher
46 posts

Adding shop to clicker game

mysinginmonsters wrote:

If you're having trouble coding this, this belongs in help with scripts. If you're looking for ideas on how it will work, this belongs in project ideas.
I will note that for next time. *bows*
AlertMango825
Scratcher
46 posts

Adding shop to clicker game

.

Last edited by AlertMango825 (Jan. 11, 2024 20:00:32)

yadayadayadagoodbye
Scratcher
1000+ posts

Adding shop to clicker game

AlertMango825 wrote:

gdfsgdfsgdfg wrote:

make a menu
when this sprite clicked // in the shop button
broadcast [shop v]
and then on a button and other stuff here:
when I receive [shop v]
show
its a simple way for opening a shop
I don't want to ask too much of you. But would you mind saying how to make it so you can buy things? I may have Joined 10 months, 4 weeks ago (I copied that from my profile page), but frankly, I don't know much about scratch.
For example, maybe you have a shop item which would give you 1 extra money everytime you click:
Create a sprite for that
Have the sprite hide when the game starts
Have it show when it receives the shop broadcast
Hide when it receives the leave shop braodcast
Place it at the palce it should be
Give it a
when this sprite clicked
block
Have it check if you have enough money (like this \/)
if <<(money) > [Amount needed]> or <(money) = (Amount needed)>> then

end
If so, do what you want (in this example, we want the item to give you 1 extra money per click, so set your “money per click” variable to be 1 higher then it was)
AlertMango825
Scratcher
46 posts

Adding shop to clicker game

h g jg g m j j nm
bnbc

hy
h hh

h
h hjjj jhj
g gkj uiuugjk
j jkjhthjg

Last edited by AlertMango825 (Jan. 11, 2024 20:11:48)

AlertMango825
Scratcher
46 posts

Adding shop to clicker game

yadayadayadagoodbye wrote:

AlertMango825 wrote:

gdfsgdfsgdfg wrote:

make a menu
when this sprite clicked // in the shop button
broadcast [shop v]
and then on a button and other stuff here:
when I receive [shop v]
show
its a simple way for opening a shop
I don't want to ask too much of you. But would you mind saying how to make it so you can buy things? I may have Joined 10 months, 4 weeks ago (I copied that from my profile page), but frankly, I don't know much about scratch.
For example, maybe you have a shop item which would give you 1 extra money everytime you click:
Create a sprite for that
Have the sprite hide when the game starts
Have it show when it receives the shop broadcast
Hide when it receives the leave shop braodcast
Place it at the palce it should be
Give it a
when this sprite clicked
block
Have it check if you have enough money (like this \/)
if <<(money) > [Amount needed]> or <(money) = (Amount needed)>> then

end
If so, do what you want (in this example, we want the item to give you 1 extra money per click, so set your “money per click” variable to be 1 higher then it was)
Thanks! I'm done with the project and I credited you and @yadayadayadagoodbye! https://scratch.mit.edu/projects/948614101/

Powered by DjangoBB