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

#1 2012-07-29 22:22:18

xoxLettermanxox
New Scratcher
Registered: 2012-07-29
Posts: 3

How to make the game bubble shooter?

So I am trying to make the game bubble shooter within a month. I understand basically how to do things like making them pop when it hits the one that corresponds, and I also understand the bounce, and the essentials like that... but how do you...

1. Make the new row of random sprites to show up, or does it have to be pre planned?

2. How do i make a random sprite show up to be shot out?

3. How EXACTLY would I make the ball shoot?

4. How do I make colours go away once all the colours are eliminated?

5. how do I make more rows appear while more are eliminated?



Anything else I'm missing .. it is GREATLY appreciated if someone could answer very bluntly and quickly  tongue  GREATLY APPRECIATED!!  big_smile

Offline

 

#2 2012-07-29 22:38:06

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: How to make the game bubble shooter?

I don't know what bubble shooter is, so sorry I can't help.

You may get more help in Help With Scripts, but with what you described I have no idea what you need help with so maybe write out individual questions and post them in Help With Scripts.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-07-30 15:35:06

mwiedmann
New Scratcher
Registered: 2012-07-30
Posts: 12

Re: How to make the game bubble shooter?

Are you trying to make a "Bust a Move" type of game? In any case, I can answer some of your questions.

Scratch doesn't have a "new" or "duplicate" command to create copies of sprites on the fly (or dynamically as they say in programming). This makes game programming a little difficult because you do have to pre-plan and create all the sprites you need ahead of time.

If you are only shooting out 1 ball, then shooting is not too difficult because you only have to keep track of 1 sprite. You'll want your ball to have a forever loop. The ball should start hidden at the bottom of the screen. You can then just code the ball to "sense" a keypress or mouse button click. When it senses the click, make it visible, then you just start it moving towards the mouse-pointer. You can use the "point towards" and select the mouse-pointer. Then, each time through the ball's forever loop use the "move # steps" to make it move towards the target. You might have to put a small "wait" command in to slow it down a little.

Your targets will be coded to look for a collision with the ball. You can use the "touching" block. When it senses the collision, hide the target, move it off the screen so it won't trigger collisions (not sure this part is needed), increase the score, etc. The target then needs to send a message to the ball that it should be reset. The ball can listen for a "reset" message and hide itself, move back to the bottom of the screen, and stop moving.

Now that you have your sprites coded. Make a bunch of copies of your targets and place them around the top of the screen. You will want an "initialization" section on the Stage that handles that part.

If you need more sprites to appear while the game is running, you can program all of your targets to move down a bit when they receive a message. You can then either recycle targets that have already been destroyed and put them back at the top of the screen, or pull some from your pool of pre-made sprites.

This might not answer all of your questions, but hopefully points you in the right direction. This project will be a bit of a challenge to do in Scratch but it is do-able.

Offline

 

Board footer