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

#1 2010-02-28 10:37:25

hazrawk
Scratcher
Registered: 2010-02-28
Posts: 1

help me!

i am making a ping pong game for my ict class. I have done all the scripts so that when the ball hits either side the points change, but when i try to play the game, the points change in twos! then when i move the ball over the line with the mouse, it is fine and does everything it should. also, with one of the sprite"players" the ball just goes right through it and jolts slightly. please help me!

Offline

 

#2 2010-02-28 14:16:20

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: help me!

I'm guessing you're using a color-based sensor that changes the score when it touches that color, right?
If so, try this script:

<forever>
<if><touching color[ (color)
  <change{ score  }by( 1
          [any other blocks you want]
  <wait until><not> <touching color[ (color) >>
<end>
<end>[/blocks]

I'd also recommend making two different scripts movement and score-sensing, if you haven't done that already.

The second problem, I don't know how to answer without actually seeing the project...


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

Board footer