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

#1 2011-02-17 18:12:42

chocolete24
New Scratcher
Registered: 2011-02-17
Posts: 4

New here did tech support!

hi i just started scratch and iam making a game for a project my question is- i want to know how to switch the backround after my sprite has reached the edge of the current backround- so basically when it reaches the edge of the picture how to switch the backround to make it look like its going somewhere please help!

Offline

 

#2 2011-02-17 23:17:48

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: New here did tech support!

Try making the sprite continuously check if its x position is far enough to the right - if it is, have the sprite move to where it should be and send a broadcast; when the Stage receives the broadcast, it should change its background.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-02-18 05:37:32

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: New here did tech support!

In the Sprite's scripts...

If [X position]= or > [number]
[Broadcast [Switch Background]

In the Background scripts...
[When I recieve [Switch Background]
[Next Background]


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

#4 2011-02-19 15:28:40

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Re: New here did tech support!

Scrolling, you mean?  big_smile


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

Board footer