Discuss Scratch

Bude_official
Scratcher
17 posts

need help with my game pls click plsss im begging i need help

so i have a game (not released) where its an incremental game, but for some reason one of the upgrades being +1 points per second is able to be used as much as you want getting + 300 points per second easily and ive tried brodcasting, forever loops (THE STUPID WHEN THIS SPRITE CLICKED BUTTON WAS IGNORING THE FOREVER lOOPS SO IT DIDNT MATTER) the stop this script button and much more AND IT STILL DIDNT WORK! can someone please tell me how to fix this? i can post the game for you to look at the code if you want
-duckergames-
New Scratcher
13 posts

need help with my game pls click plsss im begging i need help

this is a easy fix. give that upgrade a “bought?” variable, and it should be “For this sprite only”. then do this:
when green flag clicked
set [bought? v] to [no]

when this sprite clicked
if <<[money] > ((cost) - (0.1))> and <[bought?] = [no]>> then
change [money v] by (join [-] [cost])
upgrade boosts and stuff here
set [bought? v] to [yes]
end


you can also take notes of the project i put in my signature
hope this helps
Bude_official
Scratcher
17 posts

need help with my game pls click plsss im begging i need help

ok i like it but i have like 60 upgrades planned and i would have to make a new variable for each one, i could do that but i would like an easier method but thanks a lot! i will test it out rn
Bude_official
Scratcher
17 posts

need help with my game pls click plsss im begging i need help

wow it works! i followed you great job
ITS_DINO_XD
Scratcher
40 posts

need help with my game pls click plsss im begging i need help

when green flag clicked
if <the thing bought> then
add [thing] to [has I bought?]
if <[has I bought?] contains [thing] ?> then
set [ clicks per sec] to [whatever]
end
end

this makes it easier to have more stuff

Powered by DjangoBB