Great idea for a game! Here's how you can set up the basic movement and scoring in Scratch:
1. Create your character sprite and coin sprite
2. For character movement, use these blocks on your character sprite:
```
when [up arrow v] key pressed
change y by (10)
when [down arrow v] key pressed
change y by (-10)
when [left arrow v] key pressed
change x by (-10)
when [right arrow v] key pressed
change x by (10)
```
3. For coin collection, add this script to your coin sprite:
```
when green flag clicked
forever
if <touching [Character v]?> then
change [Score v] by (1)
go to (random position)
end
end
```
4. Create a "Score" variable to keep track of coins collected
5. Add obstacles as additional sprites that end the game on touch
To expand on this:
- Add sound effects for collecting coins
- Create levels with increasing difficulty
- Add a timer to create urgency
Let me know if you need any clarification on these steps!