This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-20 06:51:21

GarSkutherGirl
Scratcher
Registered: 2009-04-27
Posts: 1000+

How do I make a game with stuff appearing at random?

I need to make a game where little green balls appear at random and then my character eats them. Help!


Oh, the glory of it all - adorable cat people dressed as video game characters!
http://fc05.deviantart.net/fs71/f/2011/311/8/b/look_in_the_description_for_the_actual_epicness__by_garskuthergirl-d4fggrw.pnghttp://fc02.deviantart.net/fs70/f/2011/311/d/c/ahahahaha______by_garskuthergirl-d4fgc04.png

Offline

 

#2 2011-04-20 12:55:49

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: How do I make a game with stuff appearing at random?

Here is the script for a green ball:
http://img59.imageshack.us/img59/9964/greenballgame.gif

Offline

 

#3 2011-04-21 10:25:36

Aris54
New Scratcher
Registered: 2011-01-29
Posts: 2

Re: How do I make a game with stuff appearing at random?

[blocks]use the pick random command for your basic commands like the time and place your balls will appear [/blocks]  http://scratch.mit.edu/forums/post.php?tid=61374#req_message

Offline

 

#4 2011-04-21 10:30:59

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How do I make a game with stuff appearing at random?

silvershine wrote:

Here is the script for a green ball:
http://img59.imageshack.us/img59/9964/greenballgame.gif

This is a good method, though you may want it to look like this:
http://i52.tinypic.com/25gaq6s.gif
With the added wait block at the bottom so it doesn't disappear within one frame.



And if you want the sensing for your player to eat it, do something like this:
http://i56.tinypic.com/xag4k.gif

Last edited by Kileymeister (2011-04-21 10:31:24)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer