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

#1 2013-04-01 10:23:33

Gamer1171
New Scratcher
Registered: 2013-04-01
Posts: 1

Help with Mods

I've been using scratch for years, and I'm very fluent with the program. However, one thing that is always bugging me is the mods, and now I need to use it in a game I'm making. I'm trying to make sure that every (random seconds) a message will be broadcasted. I made a variable, known as "rate," that shows the speed of the projectiles heading towards the player (it is in negatives. Example: If rate equals -4, then x changes by -4. To clarify this, picture a weapon charging to the LEFT of the screen towards the player.) I want to base this mod off the rate, so that every random seconds based on the rate a new message will be broadcasted, prompting a weapon to appear and move (Rate) x towards the player. How would you write this script? Please help!

So far I tried using a timer, (rate-random numbers)mod(0) etc. Ugh

Offline

 

Board footer