This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » New Scratchers
  •  » How do you make sprites bounce off another sprite to make ping pong?

#1 2008-12-06 10:11:09

owner4life08
Scratcher
Registered: 2008-12-06
Posts: 1

How do you make sprites bounce off another sprite to make ping pong?

I'm one of the new members of scratch and I am here to ask other members to answer this question:

How do you make sprites bounce off of another sprite?

If you know have an answer please comment on one of my games but put in the comment the answer.

Thank you!

By
    owner4life08.

Offline

 

#2 2008-12-11 20:18:45

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: How do you make sprites bounce off another sprite to make ping pong?

<when green flag clicked>
<forever if> <touching[Whatever your sprite is]
<point in direction( ((180-  <direction>))
<move(5)steps>
<turn cw(<pick random(-20)to(20)degrees>

Hope this Helps!  smile

Last edited by 12three (2008-12-11 20:19:25)

Offline

 

#3 2008-12-13 07:08:14

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

Re: How do you make sprites bounce off another sprite to make ping pong?

Hmm not sure  tongue


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

Offline

 

#4 2008-12-13 07:56:29

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: How do you make sprites bounce off another sprite to make ping pong?

owner4life08 wrote:

I'm one of the new members of scratch and I am here to ask other members to answer this question:

How do you make sprites bounce off of another sprite?

If you know have an answer please comment on one of my games but put in the comment the answer.

Thank you!

By
    owner4life08.

import the ball script in the sample project pong that comes along with scratch

Offline

 

#5 2008-12-14 02:35:18

Earths_hope
Scratcher
Registered: 2008-09-19
Posts: 8

Re: How do you make sprites bounce off another sprite to make ping pong?

pong?
use the pong ball that comes with the progect pong!
pong pong pong pong pong pong!Nice word that!

Earths_hope now loves pong!

Offline

 
  • Index
  •  » New Scratchers
  •  » How do you make sprites bounce off another sprite to make ping pong?

Board footer