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

#1 2009-04-17 17:18:54

Dangerfield
Scratcher
Registered: 2009-04-17
Posts: 2

Creating different screens in a game

Allo all! I would like to create a top-down game (original Zelda style) but without a scrolling screen. I was wondering if it is possible to have a series of different backgrounds that a sprite could move through. Thanks for any help!

Offline

 

#2 2009-04-17 19:20:57

DsGameMaker
Scratcher
Registered: 2009-04-14
Posts: 89

Re: Creating different screens in a game

Well you could make the background as a sprite and put it to switch costumes instead of scrolling.Did that help?

Offline

 

#3 2009-04-17 19:22:48

GOLFER3_TESTS
Scratcher
Registered: 2009-02-05
Posts: 100+

Re: Creating different screens in a game

Dangerfield wrote:

Allo all! I would like to create a top-down game (original Zelda style) but without a scrolling screen. I was wondering if it is possible to have a series of different backgrounds that a sprite could move through. Thanks for any help!

well you can have 2 sprite scrolling at the same time, they just each need there own scroll varible.


http://scratch.mit.edu/projects/GOLFER3_TESTS/660280

Offline

 

#4 2009-04-17 19:24:40

DsGameMaker
Scratcher
Registered: 2009-04-14
Posts: 89

Re: Creating different screens in a game

GOLFER3_TESTS wrote:

Dangerfield wrote:

Allo all! I would like to create a top-down game (original Zelda style) but without a scrolling screen. I was wondering if it is possible to have a series of different backgrounds that a sprite could move through. Thanks for any help!

well you can have 2 sprite scrolling at the same time, they just each need there own scroll varible.

He dosn't want a scrolling backround though.

Offline

 

#5 2009-04-17 19:51:53

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Creating different screens in a game

Sure!  That can be easily be done.  Just create a number of backgrounds on the Stage and set up a series of scripts on the stage that responds to broadcast messages (using the "When I Receive" block) and set the stage to different backgrounds.  Create message names for the When I Recieve blocks.  Then, set up scripts on sprites that will use the "Broadcast" block to send a message to the scripts on the Stage telling them it is time to change the background.  This is easier to do then I am making it sound.  Here is a sample that you might find helpful:

http://scratch.mit.edu/projects/Paddle2SeeFixIt/492957


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2009-04-17 19:53:24

DsGameMaker
Scratcher
Registered: 2009-04-14
Posts: 89

Re: Creating different screens in a game

Paddle2See wrote:

Sure!  That can be easily be done.  Just create a number of backgrounds on the Stage and set up a series of scripts on the stage that responds to broadcast messages (using the "When I Receive" block) and set the stage to different backgrounds.  Create message names for the When I Recieve blocks.  Then, set up scripts on sprites that will use the "Broadcast" block to send a message to the scripts on the Stage telling them it is time to change the background.  This is easier to do then I am making it sound.  Here is a sample that you might find helpful:

http://scratch.mit.edu/projects/Paddle2SeeFixIt/492957

That's what I was trying to say.Paddle2see you took the words right out of my mouth.

Offline

 

#7 2009-04-18 04:14:54

Dangerfield
Scratcher
Registered: 2009-04-17
Posts: 2

Re: Creating different screens in a game

Thanks very much Paddle2See - fantastic help!  All working excellently - now I've just got to create proper backgrounds.

Offline

 

Board footer