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

#1 2013-01-21 16:46:33

redragon
Scratcher
Registered: 2010-07-05
Posts: 10

How can I stop a ball sinking through a line?

My ball always falls through...  sad

Offline

 

#2 2013-01-21 17:11:53

AgentCNF
Scratcher
Registered: 2012-08-27
Posts: 21

Re: How can I stop a ball sinking through a line?

when gf clicked
forever if <touching [line]?>
 change y by [5]
end
If the ball is touching the line, it won't go through.

Last edited by AgentCNF (2013-01-21 17:14:36)


Go St. Louis Cardinals!!! I Hate The Cubs!

Offline

 

#3 2013-01-22 09:40:32

Tbtemplex97
Scratcher
Registered: 2011-11-12
Posts: 100+

Re: How can I stop a ball sinking through a line?

AgentCNF wrote:

when gf clicked
forever if <touching [line]?>
 change y by [5]
end
If the ball is touching the line, it won't go through.

unless in the case of scrollers where the -y script make be greater than the y script in this case, make sure you get it to change by y more then -y


Online Status: http://blocks.scratchr.org/API.php?action=onlineStatus&amp;user=Tbtemplex97
Darkspace Coming Soon!, Try the Singleplayer Demo

Offline

 

#4 2013-01-22 11:20:13

bonechill
Scratcher
Registered: 2012-05-02
Posts: 500+

Re: How can I stop a ball sinking through a line?


http://www.planetminecraft.com/files/sigs/scratch9p_693826_sig.jpg

Offline

 

Board footer