Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to collect money in game
- 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!
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
My pictures shop! ★ Visit if you need any picture! ★ Just click here!
Are you a good artist? Do you like drawing and scratching? Join my collab!
Ortographic errors in Scratch in Spanish (translation to English available)
Sister: @CutePinkCat14
Shoutout (this scratcher is totally underrated): @Chap113311
@BrilliantStar114
- 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
This would be an endless loop; infinitely giving you money. Instead try this: Hi! You can do something like this:forever
if <touching [ coin v] ?> then
change [ money v] by (1)
end
End
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
- Discussion Forums
- » Help with Scripts
- » how to collect money in game