Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Clicker Game Shop Not Working
- TheRealYvan
- Scratcher
4 posts
Clicker Game Shop Not Working
On a clicker game I'm working on, the shop wouldn't close when it was supposed to, could anyone figure out the problem? Beta build here - https://turbowarp.org/641397208
- Rangnarok
- Scratcher
29 posts
Clicker Game Shop Not Working
when green flag clickedFor IngameIcons:
set [shop cliked?] to [0]
set [inventory cliked?] to [0]
when this sprite clicked
if <(costume #) < [3]> then
if <(costume #) = [2]> then
if <(shop cliked?) = [0]> then
set [shop cliked?] to [1]
broadcast [CueShop]
else
set [shop cliked?] to [0]
broadcast [CloseShop]
end
else
if <(inventory cliked?) = [0]> then
set [inventory cliked?] to [1]
broadcast [CueInventory]
else
set [inventory cliked?] to [0]
broadcast [CloseInventory]
end
end
else
if <(costume #) = [4]> then
end
end
Last edited by Rangnarok (Feb. 12, 2022 18:34:29)
when green flag clicked
forever
play [Minecraft]
play [Hollow Knight]
play [Undertale]
play [Deltarune]
play [TLoZ BotW]
play [TLoZ TotK]
play [It Takes Two]
play [Geometry Dash]
play [Terraria]
code [Scratch]
code [C#]
end
when [russia] > [ukraine]
if <[russia] invades [ukraine] ?> then
repeat until <([state] of[russia]) = [peace]>
̶p̶e̶n̶ foot down
replace item [state] of [putin] with [snitch]
globally [protest]
end
end
RUUUUNNN ITS THE EVIL KUMQUATS
You didnt need to scroll all the way down here btw…
- Discussion Forums
- » Help with Scripts
- » Clicker Game Shop Not Working