Discuss Scratch

YarnytheZoroark
Scratcher
4 posts

how to collect money in game

so im making a raise a floppa type game and im having a hard time with the money as i dont know how to have the player collect it.
i can have it clone when my character your raising is clicked but other than that i have no idea how to do the money.
any help for this is appreciated!
BrilliantStar114
Scratcher
100+ posts

how to collect money in game

Hi! You can do something like this:

forever

if <touching [ coin v] ?> then
change [ money v] by (1)
end
End
2006kush2010
Scratcher
32 posts

how to collect money in game

In coin sprite:
when I start as a clone
repeat until <touching [Player v] ?>
Some possible animation
end
change [COINS v] by (1)
hide
play sound [Optional coin sound v] until done
delete this clone

Interesting Projects you might want to check out

Shepard Tone:
https://scratch.mit.edu/projects/639784420/

Mind Reader:
https://scratch.mit.edu/projects/672279652/

Satisfying colour brush:
https://scratch.mit.edu/projects/790960999/
MineTurte
Scratcher
500+ posts

how to collect money in game

BrilliantStar114 wrote:

Hi! You can do something like this:

forever

if <touching [ coin v] ?> then
change [ money v] by (1)
end
End
This would be an endless loop; infinitely giving you money. Instead try this:
forever
if <touching [ coin v] ?> then
change [ money v] by (1)
stop [ this line]
end
End

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













Powered by DjangoBB