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)
Thank you for 50 followers! My 50 followers anything contest!
Sister: @CutePinkCat14
Shoutout (this scratcher is underrated): @Chap113311
All the things in my signature are links. Click in them to go to the page. (Obviously, this is not a link)
- 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
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- Discussion Forums
- » Help with Scripts
- » how to collect money in game