Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a shop
- drmcw
-
1000+ posts
How to make a shop
You need to either share the project or show the script you're having a problem with or at least be more specific otherwise this is far better off in requests or collaboration.
Last edited by drmcw (Oct. 21, 2013 08:17:35)
- Switta70
-
100+ posts
How to make a shop
http://scratch.mit.edu/projects/13310219/#editor
this is the project
this is the project
- scubajerry
-
1000+ posts
How to make a shop
http://scratch.mit.edu/projects/13310219/#editorYou need to be a lot more specific on the kind of help you need
this is the project
For example - On level 4 of my game, I can't get the coin collection script to work. When Jim touches a coin, he is suppose to collect it, but it is not working.
Try this
when gf clicked
set [coin v] to (0)
forever
if (touching color [coin color]?) then
change [coin v] by (1)
wait until <not(touching [coin color]
end
end
Your coins are not clones, they are individual sprites. So DELETE THIS CLONE won't do much. Try HIDE instead. You may want to play with this project some. http://scratch.mit.edu/projects/12036215/#player
Last edited by scubajerry (Oct. 21, 2013 11:25:06)
- Joggle1
-
1 post
How to make a shop
I had an idea, how ever it failed so im deleting it
Last edited by Joggle1 (May 12, 2014 15:33:19)
- GamerCodyBro627
-
4 posts
How to make a shop
try this it should work
opening shop script:
then for buying stuff it is much easier here is the script

here is my profile I did this in my featured project here it is
opening shop script:
when green flag clicked
forever
if <shop key pressed, some button pressed, etc, etc> then
set [ open shop] to [ 1]
show
repeat until <exit key pressed, some button pressed, etc, etc>
show
end
hide
end
end
then for buying stuff it is much easier here is the script
when this sprite clickedoh and the buying bit is in a different sprite hope this helped!
if (price :: list)=(money :: list) then
(buy :: list)
end

here is my profile I did this in my featured project here it is
Last edited by GamerCodyBro627 (Feb. 6, 2016 03:07:18)
- JCada333HACKS
-
1 post
How to make a shop
that dosent work because if you have something higher than the price it will not work, if i have 21 gold and price is 20 it will not work
- Toby-king1
-
1 post
How to make a shop
need to put a cost like make a variable of the cost of the item and if (money > cost) then
change (item) by 1
change money by (costs)
change (item) by 1
change money by (costs)
- HoofEMP
-
100+ posts
How to make a shop
right under a “don't necro” post m8 need to put a cost like make a variable of the cost of the item and if (money > cost) then
change (item) by 1
change money by (costs)
Undefined Scratchblocks. How do you get those red blocks.
[scratchblocks]
type anything that's not a legitimate block here
[/scratchblocks]
Last edited by HoofEMP (Nov. 5, 2016 22:56:54)
- nonethenones
-
100+ posts
How to make a shop
How do you get those red blocks.
there's no red blocks.
you can make a red block like this.
i like scratch
but there's no red block.
- crazyturtlelover3
-
2 posts
How to make a shop
If you're having the problem where if your cash is any higher than the price it won't work, change the “Equals” Block to “>”, put your Money/Currency variable in the left slot, and the price to the right. Hope I helped! 

- ZeecoreRocks
-
1 post
How to make a shop
I made a shop and when i click buy it makes the money to minus something
- duckboycool
-
1000+ posts
How to make a shop
Wow, this has gotten a lot of necroposts.
Please make a new topic if you have questions/concerns and make sure that you check the date of topics before posting.
Thank you.
Please make a new topic if you have questions/concerns and make sure that you check the date of topics before posting.
Thank you.
- Discussion Forums
- » Help with Scripts
-
» How to make a shop