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

#1 2010-03-12 02:30:49

athrax
Scratcher
Registered: 2010-03-12
Posts: 1

bouncing code

i would love a code for: [blocks]<if on edge, bounce>[/blocks]

but it would be used for  sprites: if on sprite1 bounce.

Last edited by athrax (2010-03-12 02:32:59)

Offline

 

#2 2010-03-12 10:34:06

AddZero
Scratcher
Registered: 2007-08-11
Posts: 100+

Re: bouncing code

Yeah, some built-in sprite level physics might be nice. 
But I think it might over complicate things. 
It is possible make your own, but sprites can be very odd shapes making the calculation of what direction to bounce off difficult.   it's easier if you treat them as spheres http://scratch.mit.edu/projects/Canthiar/7369 or other simple shapes.


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

Board footer