Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to Make a Shop on a clicker
        ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
- Selenacode
- 
                             Scratcher Scratcher
15 posts
How to Make a Shop on a clicker
when green flag clicked
broadcast [ v]
That’s all I know. How do you broadcast your shop? How do make it click for you? Help Pls!
- ognerubovi
- 
                             Scratcher Scratcher
15 posts
How to Make a Shop on a clicker
Bar:
                        
                            when this sprite clickedButtons:
repeat (10)
change x by (-2)
end
broadcast [ shop]
when I receive [shop]
show
[scratchblocks]
when green flag clicked
hide
forever
if <<touching [ mouse pointer] ?> and <mouse down?>> then
wait until <not <mouse down?>>
if <(money) > [???]>
change [ upgradename] by (1)
end
end
[/scratchblocks]
Last edited by ognerubovi (Feb. 14, 2024 16:04:33)
- ognerubovi
- 
                             Scratcher Scratcher
15 posts
How to Make a Shop on a clicker
Bar:when this sprite clickedButtons:
repeat (10)
change x by (-2)
end
broadcast [ shop]when I receive [shop]
show
[scratchblocks]
when green flag clicked
hide
forever
if <<touching [ mouse pointer] ?> and <mouse down?>> then
wait until <not <mouse down?>>
if <(money) > [???]>
change [ upgradename] by (1)
end
end
[/scratchblocks]
- Queen_Bee_Light_
- 
                             Scratcher Scratcher
97 posts
How to Make a Shop on a clicker
Hi! I do not know how to do that but go to youtube and search Zinnea she made a video on how to do a clicker game with a shop! go to @Zinnea to see her amazing projects!
                        
                        
                    - medians
- 
                             Scratcher Scratcher
1000+ posts
How to Make a Shop on a clicker
You could do sth like this:
You can use this block to run code when the block is used:


                        
                        
                    when this sprite clickedAnd then show the items when the shop is loaded in some way, and hide anything that isn't meant to be there.
broadcast [shop v]
You can use this block to run code when the block is used:
when I receive [shop v]Tips Window explanation:
whatever code you want ::grey //select the broadcast you want in the dropdown


- Selenacode
- 
                             Scratcher Scratcher
15 posts
How to Make a Shop on a clicker
Hi! I do not know how to do that but go to youtube and search Zinnea she made a video on how to do a clicker game with a shop! go to @Zinnea to see her amazing projects!
Thank you
- stlanlyschool
- 
                             Scratcher Scratcher
2 posts
How to Make a Shop on a clicker
Is there some easy code for a shop??? 
                        
                        
                    
- Discussion Forums
- » Help with Scripts
- 
            » How to Make a Shop on a clicker ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)




