Discuss Scratch

GachaAlpha678
Scratcher
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
Scratcher
1000+ posts

Random Explosion

Something like this would be what you're looking for:

when this sprite clicked
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
The 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.
GachaAlpha678
Scratcher
32 posts

Random Explosion

Thank you so much!!

Powered by DjangoBB