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

#1 2009-12-04 16:42:39

dstones
Scratcher
Registered: 2009-12-04
Posts: 2

Hi, New to Scratch need help with my first game!

Hi, I am new to scratch and want to get into programming. I am trying to create a basic pong game but cant get the ball to ping of the bat correctly. Can anyone help?
http://img207.imageshack.us/img207/1138/pongl.png

Thats the link to a image of the code

Thanks in advance
Danny

Offline

 

#2 2009-12-04 16:55:42

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Hi, New to Scratch need help with my first game!

Hi Dstones  smile

Most Pong games can be simple or complicated, but I'll post a few projects you could download and look at in a minute.

Edit:

This one is controlled by the mouse (Might be different than what you want), but the bouncing scripts used are the same. http://scratch.mit.edu/projects/jamie/1518

This may be more or less what you're after  smile . Two lines that the ball bounces off. http://scratch.mit.edu/projects/Rotation/722460

I suggest downloading these projects and maybe a few other Pong-based games and looking at the scripts. This will probably be the easiest way to learn the pong scripts...

Last edited by 06dknibbs (2009-12-04 17:02:12)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2009-12-04 17:40:49

dstones
Scratcher
Registered: 2009-12-04
Posts: 2

Re: Hi, New to Scratch need help with my first game!

yeah I have looked at them but just cant get it to work. Can anyone help?

Offline

 

#4 2009-12-04 23:49:12

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Hi, New to Scratch need help with my first game!

The best way to study a project like that is to tweak it around or take it apart. I'm not good at describing it perfectly, but you can just try and play with it.  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

Board footer