Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Marco Polo style game?
- Propinquity
- New to Scratch
2 posts
Marco Polo style game?
I want to make a Marco Polo style game, but I'm not sure which scripts to use. I have in mind what I'd like it to do:
I'll start the game off with one sprite at the center of the stage
then there will be another sprite at a random location that's hidden.
The arrow keys control the motion of the first sprite.
When space is pressed, the first sprite should say “Marco” after which the second sprite should briefly show itself and say “Polo”
If the first sprite says “Marco” when it is touching the second, the second sprite should appear and say “Found me!”
How do I do this?
I'll start the game off with one sprite at the center of the stage
then there will be another sprite at a random location that's hidden.
The arrow keys control the motion of the first sprite.
When space is pressed, the first sprite should say “Marco” after which the second sprite should briefly show itself and say “Polo”
If the first sprite says “Marco” when it is touching the second, the second sprite should appear and say “Found me!”
How do I do this?
- drmcw
- Scratcher
1000+ posts
Marco Polo style game?
Made this for you. Hopefully it makes sense and you can change as required. Your description of the game was very good and this would make a very nice starter project as it's reasonably straightforward. I'd be interested to know what stopped you from coding this from your excellent description?
e.g. start the sprite at the centre of the screen becomes
e.g. start the sprite at the centre of the screen becomes
when flag clicked
go to x: (0) y:(0)
Last edited by drmcw (Sept. 12, 2013 08:32:02)
- Propinquity
- New to Scratch
2 posts
Marco Polo style game?
Thank you! This helped a lot.
I'm completely new to Scratch (as in I started literally an hour ago) so I just wanted some place to start.
I'm completely new to Scratch (as in I started literally an hour ago) so I just wanted some place to start.
Last edited by Propinquity (Sept. 12, 2013 08:30:56)
- drmcw
- Scratcher
1000+ posts
Marco Polo style game?
Thank you! This helped a lot.
I'm completely new to Scratch (as in I started literally an hour ago) so I just wanted some place to start.
Glad it helped. I understand now. I think the hardest bit in the project is the broadcast. You may also wonder why I use set ghost effect to 100 instead of the more obvious hide block. The reason for using ghost effect over hide is that you can still use the sense block touching. If I had used hide then the sprite is effectively removed from the screen and so touching blocks will not work whereas with ghost effect set to 100 you cannot see the sprite but you can still detect things using the touch blocks.
Good luck and Happy Scratching!
- Discussion Forums
- » Help with Scripts
- » Marco Polo style game?