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

#1 2012-12-18 14:44:20

digitalgreen13
New Scratcher
Registered: 2012-12-18
Posts: 1

How do you switch backgrounds on your project?

I am trying to change my backgrounds, and it is working, but whenever I want to switch to another background, it follows the script for my very first background. I want my backgrounds to to have their own independent scripts. Thank you!  smile

Offline

 

#2 2012-12-18 15:00:04

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: How do you switch backgrounds on your project?

digitalgreen13 wrote:

I am trying to change my backgrounds, and it is working, but whenever I want to switch to another background, it follows the script for my very first background. I want my backgrounds to to have their own independent scripts. Thank you!  smile

when gf clicked
switch to background ( thing 1 v) 
do whatever 
switch to background ( thing 2 v)
end 
Is that what you mean?

Also welcome to scratch!

Last edited by fillergames (2012-12-18 16:13:06)


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#3 2012-12-18 18:29:13

mrn0body
Scratcher
Registered: 2012-12-11
Posts: 37

Re: How do you switch backgrounds on your project?

If you are making a platform level and you want to go to another background when you complete it then you should first make a variable called 'Level' then put this script on the stage.

when gf clicked
switch to [background1]
wait until < (level) = [2] >
switch to [background2]
And put on your sprite

when gf clicked
forever
if < doing whatever >
change [level] by (1)

I hope this helps


Why Fit In When You Were Born To Stand Out

Offline

 

Board footer