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

#1 2012-03-02 06:25:06

Angelovski
New Scratcher
Registered: 2012-03-02
Posts: 1

I need a little Help

I'm trying to make a game where you can pop balloons with the mouse and get points however I don't know how to make new balloons(if possible in different colors) come from the bottom all the time.

Offline

 

#2 2012-03-02 08:55:15

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: I need a little Help

In broad terms, you want to create a ballon sprite that positions itself at the bottom of the screen, then starts to move up until it is popped or it reaches the top of the screen.  Once it is popped or it reaches the top of the screen, have it hide itself, maybe pause for a little while, then go back to the bottom of the screen and do it again.

Get that sprite working really well - then copy it a bunch of times, maybe change the colors of a few costumes and you are good to go  smile

Probably somebody not clicking away on an iPad can give you an actual script, if you want one.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2012-04-03 18:26:35

aryabtsev
Scratcher
Registered: 2012-02-05
Posts: 81

Re: I need a little Help

forever
go to x: (pick random (-240) to (240)) y: (-180)
repeat until <<<touching [mouse-pointer v]?> and <mouse down?>> or <(y position) > (170)>>
change y by (speed) //Desired speed of going up
change x by (pick random (-3) to (3))
turn right (pick random (-5) to (5)) degrees
wait (0.5) secs
end
This should work.


http://i.imgur.com/NX7AO.jpg

Offline

 

#4 2012-04-03 18:28:32

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: I need a little Help

aryabtsev wrote:

forever
go to x: (pick random (-240) to (240)) y: (-180)
repeat until <<<touching [mouse-pointer v]?> and <mouse down?>> or <(y position) > (170)>>
change y by (speed) //Desired speed of going up
change x by (pick random (-3) to (3))
turn right (pick random (-5) to (5)) degrees
wait (0.5) secs
end
This should work.

It is important to note that you can hold down the mouse button and simply drag it to pop the balloons.  If you want a script that requires clicking the balloons, you'll need to use variables (just ask if you want it)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer