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

#1 2008-05-31 21:34:33

1pikachu1
Scratcher
Registered: 2007-12-23
Posts: 36

No-Move Ball

I am making a pong brick game and on download when the ball hits a brick it stops moving.
Please Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Offline

 

#2 2008-05-31 21:45:18

rockie
Scratcher
Registered: 2007-11-18
Posts: 100+

Re: No-Move Ball

make the brick and the paddle a different color than the red bottom.


No signature currently stored in profile.

Offline

 

#3 2008-06-04 20:25:47

1pikachu1
Scratcher
Registered: 2007-12-23
Posts: 36

Re: No-Move Ball

I made sure it wouldn't that. (and it's any brick it touches).

Last edited by 1pikachu1 (2008-06-04 20:26:16)

Offline

 

#4 2008-06-04 20:54:06

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

Re: No-Move Ball

Okay, what you have is

Wait Until (Touching Color Red) And Not [(Touching a red brick) or (Touching a red paddle)]
Stop All

Which looks like it should work...and it does online.  But not always when it is downloaded (sometimes it does).  What I think is happening here is that it takes time for the computer to do the sensing on the colors and the touching of the sprites and in this case, the sensing on the color red is becoming true an instant BEFORE the sensing on the touching of the red brick is becoming true.  So the Wait condition is being satisfied and the program stops. 

The cure (as rockie suggested) is to change the color of the red brick and the red paddle to some other color.  I tried that and it worked fine.


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

Offline

 

Board footer