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

#1 2010-04-20 16:41:29

dlongm01
Scratcher
Registered: 2010-03-13
Posts: 2

Passing values between sprite and stage

HOw can I write a script so that the stage changes when the sprite does something?

E.g. I have a sprite script. When the sprite gets to a certain positoin on the stage I want to chagne the background.

I don;pt know how to do that. I've looked through the forums but can;t find an answer.

I thought I coul dcreate a variable for the Sprite and then have the stage script read that value but I don't think I can?

Offline

 

#2 2010-04-20 16:56:23

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: Passing values between sprite and stage

use the "broadcast" and "When I receive" blocks.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#3 2010-04-20 19:00:59

dlongm01
Scratcher
Registered: 2010-03-13
Posts: 2

Re: Passing values between sprite and stage

OK that's great thanks! Now I get it.

Offline

 

Board footer