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

#1 2010-08-18 20:34:17

jagernam
New Scratcher
Registered: 2010-08-14
Posts: 3

Making the background change when Sprites touch each other

I was just wondering how can you make the background change when two sprites touch each other? I am using this for a school assignment.  smile

Offline

 

#2 2010-08-18 20:40:04

Lellowsfuzz
Scratcher
Registered: 2009-04-17
Posts: 500+

Re: Making the background change when Sprites touch each other

Here's the code for the sprite:

When Flag clicked
forever
if <touching [Sprite1]?>
broadcast [changebg]
/if
/forever

Now the stage's code:

When I receive [changebg]
switch to background [background1]

Offline

 

#3 2010-08-18 20:43:24

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: Making the background change when Sprites touch each other

Offline

 

#4 2010-08-19 19:22:18

15765
New Scratcher
Registered: 2010-07-18
Posts: 1

Re: Making the background change when Sprites touch each other

THANK YOU THANK YOU THANK YOU
I has spent ages trying to do it so THANK YOU!!!!!

Offline

 

Board footer