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

#1 2013-05-06 06:55:40

GusDaBoss
New Scratcher
Registered: 2013-04-25
Posts: 1

Help Background change

Hi I am very stuck on how to make the background change when one sprite touches another sprite! Please can someone give me some advice or help me!!!!!!!!!!!!!!!

Offline

 

#2 2013-05-06 07:07:03

dsaztur
Scratcher
Registered: 2012-06-13
Posts: 100+

Re: Help Background change

First create a variable 'background.'

when clicked
forever
if
background
=
2
set background to
background 2 p

Then:
when clicked
forever
if
touching sprite 2
set background to
2

I'm not really good with scratchblocks in the forums so I hope you understand.  smile

Last edited by dsaztur (2013-05-06 07:18:11)


http://i43.tinypic.com/14slmx.png

Offline

 

#3 2013-05-06 07:09:41

khanning
New Scratcher
Registered: 2012-07-17
Posts: 2

Re: Help Background change

Hi GusDaBoss,

One way would be using broadcasts:

when clicked
wait until
touching
Other Sprite
?
broadcast
change background

On one of the sprites

when I receive
change background
next background

On the Stage

Offline

 

Board footer