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

#1 2010-06-06 21:09:36

adiguy17
Scratcher
Registered: 2010-05-04
Posts: 17

Changing Backgrounds

I wanted to know how to make the background of the stage to change whenever I go to the edge. I put in the following blocks:
<when green flag clicked><forever if><touching[edge]<broadcast[next]
Then for the Stage scripts i put:
<when I receive[next] Go to next Background.
But When I do that, the backgrounds rapidly change. Also when the background changes I want the sprite to be at the beginning of the stage.

Offline

 

#2 2010-06-06 21:25:21

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Changing Backgrounds

DO this:

When Green flag clicked
Forever
If touching {edge?]
Broadcast {Next background]
Go to x [ insert some place not touching any edges] y[0]
End if
End forever

When I recieve [Next backround]
Next Backround

Tada! It should work.

Offline

 

#3 2010-06-07 17:47:31

adiguy17
Scratcher
Registered: 2010-05-04
Posts: 17

Re: Changing Backgrounds

Thank You So Much.☺☻☺☻☺
Scratch Forums are so helpful!!

Offline

 

#4 2010-06-07 17:57:25

Subh
Scratcher
Registered: 2010-05-25
Posts: 100+

Re: Changing Backgrounds

Or Try this one-

when green flag clicked
forever
if touching edge?
broadcast next
wait 3 seconds(or whatever time)
end if
end forever

Last edited by Subh (2010-06-07 17:57:56)


http://wiki.scratch.mit.edu/skins/scratch/logo.png     I'M IN Scratch Wiki .... ARE YOU ????

Offline

 

Board footer