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

#1 2011-01-11 13:21:55

Chocococ
New Scratcher
Registered: 2011-01-11
Posts: 1

Bouncing Of Edge

I will try and make something glide to somewhere to get it moving, i set it to bounce, but all it does it stop. Why isn't it working?  sad
[blocks]<if on edge, bounce><glide(2)secs to x sad 0)y sad -143) [/blocks]

Offline

 

#2 2011-01-11 13:28:36

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Bouncing Of Edge

Do you have another script telling it what to do after it bounces?
Bounce only changes the direction.
BTW, this should be in All About Scratch, as it is your coding that you need help with.  Troubleshooting is for stuff wrong with the website or code, not scripting mistakes

Last edited by scimonster (2011-01-11 13:30:03)

Offline

 

#3 2011-01-11 16:26:05

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Bouncing Of Edge

The if on edge bounce block only works if you are moving in steps... If you were to do this:

http://img220.imageshack.us/img220/1841/89158699.gif

Then the if on edge bounce block would work.

However if you're moving with the x and y position blocks, you'd have to do this:

http://wiki.scratch.mit.edu/images/How_to_get_around_the_If_on_Edge%2C_Bounce_block.png


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#4 2011-01-15 04:03:59

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Offline

 

Board footer