Discuss Scratch

Switta70
Scratcher
100+ posts

How to make a shop

i need some help with a shop script

plz tell me
drmcw
Scratcher
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
Scratcher
100+ posts

How to make a shop

scubajerry
Scratcher
1000+ posts

How to make a shop

Switta70 wrote:

http://scratch.mit.edu/projects/13310219/#editor
this is the project
You need to be a lot more specific on the kind of help you need

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
Scratcher
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
Scratcher
4 posts

How to make a shop

try this it should work

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 clicked
if (price :: list)=(money :: list) then
(buy :: list)
end
oh and the buying bit is in a different sprite hope this helped!
here is my profile I did this in my featured project here it is

Last edited by GamerCodyBro627 (Feb. 6, 2016 03:07:18)

soyboy22
Scratcher
1 post

How to make a shop

How do you get those red blocks.
JCada333HACKS
Scratcher
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
deck26
Scratcher
1000+ posts

How to make a shop

This is an old topic, please don't necropost.
Toby-king1
New Scratcher
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)
HoofEMP
Scratcher
100+ posts

How to make a shop

Toby-king1 wrote:

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)
right under a “don't necro” post m8

soyboy22 wrote:

How do you get those red blocks.
Undefined Scratchblocks.

[scratchblocks]
 type anything that's not a legitimate block here
[/scratchblocks]

Last edited by HoofEMP (Nov. 5, 2016 22:56:54)

nonethenones
Scratcher
100+ posts

How to make a shop

soyboy22 wrote:

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
Scratcher
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
Scratcher
1 post

How to make a shop

I made a shop and when i click buy it makes the money to minus something
duckboycool
Scratcher
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.

Powered by DjangoBB