Discuss Scratch
- Discussion Forums
 - » Questions about Scratch
 - » Adding shop to clicker game
        
         
- 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 buttonand then on a button and other stuff here:
broadcast [shop v]
when I receive [shop v]its a simple way for opening a shop
show
- AlertMango825
 - 
                            
						
						
                            Scratcher
                        
						
						 
46 posts
Adding shop to clicker game
make a menuty!when this sprite clicked // in the shop buttonand then on a button and other stuff here:
broadcast [shop v]when I receive [shop v]its a simple way for opening a shop
show
- 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
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
For example, maybe you have a shop item which would give you 1 extra money everytime you click:make a menuI 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.when this sprite clicked // in the shop buttonand then on a button and other stuff here:
broadcast [shop v]when I receive [shop v]its a simple way for opening a shop
show
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 clickedblock
Have it check if you have enough money (like this \/)
if <<(money) > [Amount needed]> or <(money) = (Amount needed)>> thenIf 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)
end
- 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
                        
                            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
Thanks! I'm done with the project and I credited you and @yadayadayadagoodbye! https://scratch.mit.edu/projects/948614101/For example, maybe you have a shop item which would give you 1 extra money everytime you click:make a menuI 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.when this sprite clicked // in the shop buttonand then on a button and other stuff here:
broadcast [shop v]when I receive [shop v]its a simple way for opening a shop
show
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 awhen this sprite clickedblock
Have it check if you have enough money (like this \/)if <<(money) > [Amount needed]> or <(money) = (Amount needed)>> thenIf 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)
end
- Discussion Forums
 - » Questions about Scratch
 - 
            » Adding shop to clicker game 
         



