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

#1 2012-12-15 09:30:52

gaurav_rai
New Scratcher
Registered: 2012-12-15
Posts: 1

Sensing control for touching not working

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

 

#2 2012-12-15 10:11:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Sensing control for touching not working

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)
end
Sprite 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


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2012-12-18 15:58:32

finlayvscott
New Scratcher
Registered: 2012-12-05
Posts: 14

Re: Sensing control for touching not working

Works for me, just your guy is causing so many drumbeats it sounds like a big drone...

Offline

 

Board footer