I thought I'd post this because you may have been wondering
Here's my way of doing it:
point in direction (90 v)
go to x: (0) y: (0)
forever
repeat until <touching [edge v]?>
turn cw (15) degrees
change x by (10)
end
repeat (10)
turn ccw (15) degrees
change x by (-10)
end
repeat until <touching [edge v]?>
turn cw (15) degrees
change x by (10)
end
repeat (10)
turn cw (15) degrees
change x by (10)
end
Have fun with the bouncing sprite! And as usual, Scratch On!
Offline
legobob23o wrote:
I thought I'd post this because you may have been wondering
Here's my way of doing it:point in direction (90 v) go to x: (0) y: (0) forever repeat until <touching [edge v]?> turn cw (15) degrees change x by (10) end repeat (10) turn ccw (15) degrees change x by (-10) end repeat until <touching [edge v]?> turn cw (15) degrees change x by (10) end repeat (10) turn cw (15) degrees change x by (10) endHave fun with the bouncing sprite! And as usual, Scratch On!
There's a better way to do it with velocities.
Offline