Discuss Scratch

10yearoldgamers
Scratcher
21 posts

How do you make a shop with 50 or higher on it?

Hi, My name is nick and i need help, im making this game and theres a shop, and you need at least 50 dollars to get it but if its over 50 dollars it says you dont have enough (which it is but its just over it) but i want to to be at least 50 dollars they need or more. so you have to have exactly have to have 50 dollars but i dont want that to happen, so if you could help thanks!

jji7skyline
Scratcher
1000+ posts

How do you make a shop with 50 or higher on it?

use something like this

when [50dollaritem v] clicked
if <(money) < [50]>
say [you don't have enough money]
else
change [money v] by [-50]
add item [50dollaritem] to [list v]
end
BSH1
Scratcher
100+ posts

How do you make a shop with 50 or higher on it?

When greenflag clicked // or use any event block eg: when this sprite clicked
if <(cash) < [50]> then // detects whether you have less than 50 cash
do stuff for not having enough money // eg broadcast need money
else // bacically if <(cash) > [49] >
do stuff for having enough money // eg change [cash] by (-50)
end // script end
// hope this helps :)
10yearoldgamers
Scratcher
21 posts

How do you make a shop with 50 or higher on it?

jji7skyline wrote:

use something like this

when [50dollaritem v] clicked
if <(money) < [50]>
say [you don't have enough money]
else
change [money v] by [-50]
add item [50dollaritem] to [list v]
end

thank you so much for your help! i have added you in the credits.

Last edited by 10yearoldgamers (Dec. 25, 2013 18:10:47)


Powered by DjangoBB