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

#1 2012-09-08 23:08:40

victoriachristine
New Scratcher
Registered: 2012-09-08
Posts: 1

Scrolling Background with Sprites! HELP, URGENT!

Hi,

I'm making a game for my assignment. I have a scrolling background consisting of 5 backgrounds and want to place a picture (Of a portal) at the end of the scrolling background to transport the sprite the the next level of the game. I don't know how to do this and my game is due in 2 days!

PLEASE HELP!

Thanks  smile

Offline

 

#2 2012-09-10 14:41:50

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Scrolling Background with Sprites! HELP, URGENT!

how does you project work ?


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#3 2012-09-10 14:52:40

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Scrolling Background with Sprites! HELP, URGENT!

I assume then, that you know how to make the background scroll. Use the same script, but like this.

when gf clicked
forever
set x to ((scrollx) + (([480] * [5]) + [150]))
if <touching [player v] ?>
broadcast [next level v] //or...
change [level v] by [1]
wait [1] secs //if you're using variable based systems.
The 150 is probably going to work, but make the number larger to go further left, smaller to go furthe right. And this is to be used in conjunction with your hiding script, or frame. The one for the frame is shown here. Use either the broadcast or the variable, not both, unless you have something else that utilizes both.

Last edited by sonicfan12p (2012-09-10 14:59:16)


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer