Wednesday, December 24, 2008

How to Make Bouncing Ball

If asked, most children would said they play video games for the first time in their life as a game of hitting the ball to the wall. Making bouncing ball is very easy to do in Scratch. I would teach you step on how to make it, step by step. tutor1-1

First, we have to make a new Sprite for a ball. The ball will always bounce back when hitting the wall to the appropriate direction. It's easy to draw the costume for a ball.

Now it's time to make a new Script for your Ball Sprites. Remember that we have to start play our games when the Green Flag being clicked. So we have to use this block green flagto control our games. Don't forget to set the coordinate of the ball every time we play the games so that the ball never loss to the outside of the Stage. Now I wedge bounceill show you, that Scratch have very nice block that can do our job automatically. Look at the Motion Blocks Palette and you will see the block "if on edge, bounce". This is very useful block and you can use it for many kind activity in usual games. Finally you must use that blocks within forever forever block, so that Scratch will evaluate this block, as long as we don't click Stop button. But it's not enough. What the ball will do after it bounces? They have move some steps away from initial position without ending. So we have our conclusiontutor 1-2 right now. The complete blocks, or we call stack, for our ball sprite is the combination of all the blocks I have described. Now you can build your own bouncing ball games. For the next time, I will show you how to complete this game with racket for hitting the ball. Bye.

16 comments:

  1. thank you. i needed this for a project

    ReplyDelete
  2. Iwan,

    Since a lot of kids use these tutorials, I think you should turn off the Comments because too many people post profanity and offensive language. If parents see that, they will not let the kids browse your great blog.

    -Anonymous

    ReplyDelete
  3. crap it doz not make it bounce it makes it go left right
    loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooserrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

    ReplyDelete
    Replies
    1. Try pointing it in a different direction.

      Delete
  4. there is already a preset bouncing ball

    ReplyDelete
    Replies
    1. how do you get it though?

      Delete
    2. Insert sprite from File -> Costumes -> Things -> Bouncy Ball

      Delete
  5. that was fucking nonsense

    ReplyDelete
  6. that was good thx x
    i really needed it 4 a project
    xx

    ReplyDelete
  7. yh i agree with march 26

    ReplyDelete
  8. that was bad actually i got an F
    I am the one who said this at 2:39

    ReplyDelete
  9. that was bad actually i got an F-
    I am the one who said this at 2:40

    ReplyDelete
  10. Very good article. I absolutely appreciate this site. Thanks!



    my website: bankruptcy laws in florida

    ReplyDelete
  11. good helpful article

    ReplyDelete