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

#1 2011-11-24 21:42:08

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Random Bouncing

I have been trying to make random bouncing in my game, but I can't figure out how!  Also, I have been looking on other Scratchers' games but I can't find anything.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2011-11-25 01:49:08

wildwildcat
New Scratcher
Registered: 2011-06-01
Posts: 7

Re: Random Bouncing

More description? What is bouncing? What type is random? Frequency? Speed? Height?

Offline

 

#3 2011-11-25 02:56:30

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Random Bouncing

Well if you mean of another sprite, you could try:

When green flag clicked
Forever
If touching [object you want to hit]
Turn right 180 degrees
Turn righ pick random (-20) to (20) degrees
End if
End forever


Why

Offline

 

#4 2011-12-11 17:19:50

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Random Bouncing

I found it already.  Thanks for all of your help though!


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

Board footer