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

#1 2010-10-19 19:27:44

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

Making No Sense

Hi im making a ponggame and this script should work but it doesnt. Is there a problem???


<when green flag clicked>
<forever>
<if> The X position of Sprite 3(ball)=-230
<go to x sad  -21 )y sad  13
<change{ Player 2 Score }by( 1
<end>

Offline

 

#2 2010-10-19 19:30:09

littletonkslover
Scratcher
Registered: 2008-12-12
Posts: 1000+

Re: Making No Sense

Maybe it should be
<when green flag clicked>
<if> touching(ball)<go to
x: (-21  )y:(13 <end>
<change{ Player 2 score }by( 1

Argh, nvm this is messed up

Last edited by littletonkslover (2010-10-19 19:30:36)


http://www.coxlab.org/images/rat_banner.jpg
That's the dark nature of capitalism. ~ Wonder Showzen

Offline

 

#3 2010-10-19 19:34:57

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Making No Sense

It's probably just that Scratch can't sense the x position that precisely. Just change the part where it says <x position = -230> to <x position < -229>.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-10-19 20:43:00

car1977
Scratcher
Registered: 2010-10-17
Posts: 20

Re: Making No Sense

thx

Offline

 

Board footer