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

#1 2012-04-03 20:49:32

chipskyler
New Scratcher
Registered: 2012-04-03
Posts: 2

Projectiles @ Random Intervals

Hey, i'd like to know how to make a script for a Scratch game i am making. The game revolves on 5 bullies located at the top of the screen throwing projectiles at the victim on the bottom of the screen.

What i need help with is making a script that throws projectiles at random intervals. The intervals should also get shorter as time progresses. Help would be appreciated  big_smile

Offline

 

#2 2012-04-03 20:55:55

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Projectiles @ Random Intervals

when gf clicked
forever
wait <pick random <shortest limit> to <highest limit>> secs
when gf clicked
set [shortest limit v] to [8] //could be whatever you want
set [highest limit v] to [15] // look above
forever
wait <wanted amount of time> secs
change [shortest limit v] by [-0.1]
change [highest limit v] by [-0.1]

Last edited by TorbyFork234 (2012-04-03 20:56:36)

Offline

 

Board footer