Discuss Scratch

Sophie22Anne
Scratcher
19 posts

Shop

I want to know how to build a shop into my game. I would prefer to keep my project shared tho. The shop script can be the one you get in clickers. But I need a way that can fit in my project.
Catscratcher07
Scratcher
1000+ posts

Shop

building the entire shop system for you is out of scope for this form, please try to do it yourself, and post here only if you run into any specific problems.

trouble with clones? view my clone id toolbox! I also have built the bases of a tower defence game link here.
If someone on help with scripts is saying that something can't be done, they should be suspected of being a team limit grunt.
Sophie22Anne
Scratcher
19 posts

Shop

Ok
MrKingofScratch
Scratcher
100+ posts

Shop

when this sprite clicked
if <(coins) > [put the price here]> then
change [coins v] by (put the negative version of the price here)
code that activates whatever's being bought
else
say [This costs <put price here> coins!] for (2) secs
end

Last edited by kaj (Tomorrow 00:00:00)
100th post!
qwertycodechamp90411
Scratcher
100+ posts

Shop

MrKingofScratch wrote:

when this sprite clicked
if <(coins) > [put the price here]> then
change [coins v] by (put the negative version of the price here)
code that activates whatever's being bought
else
say [This costs <put price here> coins!] for (2) secs
end
Quick fix
when this sprite clicked
if <not<(coins) < [put the price here]>> then // so it can be equal
change [coins v] by (join (-) (price)) // if the cost was 1, type -1 here
code that activates whatever's being bought
else
say [This costs <put price here> coins!] for (2) secs
end

Useful Links: Text Generator ——— Encoders/Decoders (Normal, Case Sensitive) ——— New Math Blocks ——— Comment what next on my profile!
Wait, we’re at 900 million projects? So close to 1 billion projects uploaded to the server!

<((x) ^ ((1) / (y))::operators) = ((y) √ (x)::operators)> // is false if x < 0???
Hi! I'm qwertycodechamp90411. I'm most active on the suggestions forum and the help with scripts forum, because I like to help other people and improve scratch! I like to think I'm good at scratch, but there's a lot I don't know/understand (how on earth do scrolling platformers work lol). As a general rule of thumb, I should have the answer if it's math related, because I'm a very stereotypical nerd when it comes to math.
Sophie22Anne
Scratcher
19 posts

Shop

ty that was very helpful
MrKingofScratch
Scratcher
100+ posts

Shop

qwertycodechamp90411 wrote:

if <not<(coins) < [put the price here]>> then // so it can be equal
Thanks for correcting me!

Last edited by kaj (Tomorrow 00:00:00)
100th post!

Powered by DjangoBB