Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Random Explosion
- GachaAlpha678
-
32 posts
Random Explosion
I'm making a game where you click the scratch cat and it says something random. I'm using the list for the random words, and now I want a random explosion every time the scratch cat randomly says “explode” (the explode is also in the list). How do I do that?
- RL1123
-
1000+ posts
Random Explosion
Something like this would be what you're looking for:
when this sprite clickedThe script above is for the Scratch Cat sprite. Then, under your explode broadcast, you can create your own explosion. If you need more help, let me know.
set [random v] to (item (pick random (1) to (length of [random words v] :: list)) of [random words v] :: list)
say (random) for (2) secs
if <(random) = [explode]> then
broadcast [explode v]
end
- Discussion Forums
- » Help with Scripts
-
» Random Explosion