I'm trying to make a game in scratch.I'm a putting a if condition such that if sprite 1 touches sprite 2,drum sound plays.
I put one sprite to choose random positons and other to glide horizontly.
When both sprites touch each other,nothing is happening.
Please help me with that.
Offline
Sprite 1:
when gf clicked go to x:(-240) y:(240) forever repeat (480) change x by (1) end repeat (480) change x by (-1) endSprite 2:
when gf clicked forever go to x:(pick random (-240) to (240)) y:(pick random (-180) to (180)) broadcast [play v]
when I receive [play v] play drum (48 v) for (0.2) beats
Offline
Works for me, just your guy is causing so many drumbeats it sounds like a big drone...
Offline