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

#1 2010-03-21 01:44:43

ham4life
Scratcher
Registered: 2010-03-21
Posts: 2

New Stages?

Hey Guys

I was introduced to scratch by a couple of mates at school who new that i wanted to create pc games. I have started a basic game to get used to everything and i want to create a new level/stage. Can someone please tell me how to make it.

Thanks, Ham4Life

Offline

 

#2 2010-03-21 10:40:34

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: New Stages?

Well, the first step would be to have a variable called "stage" or "level" or actually whatever you want to call it, but it's best to have a variable that you'll be able to recognize.

Next, you'll want to make it so that the variable goes up by one every time you complete a level. Depending on how your game is working, you may want to do it with colour sensing or something. Use the broadcast block to tell the rest of your sprites what to do, so broadcast something and have all of your sprites get ready for the next stage. Make sure the variable also ups by one.

Then, make it so that the stage will have it's background based on the variable you made earlier. So use the following script

When (green flag) clicked
forever
  set background to (variable)
======

You may also want to show/hide your sprites based on the variable.

I'm not sure if that's what you were looking for, but there you go  smile

Offline

 

#3 2010-03-31 03:47:19

ham4life
Scratcher
Registered: 2010-03-21
Posts: 2

Re: New Stages?

Hey coolstuff

Thanks for replying. the information you have given me sounds like the information i need. would you or someone else please post an Example script so I know how to do it.

Thanks again guys  smile

Offline

 

#4 2010-03-31 03:51:53

urhungry
Scratcher
Registered: 2009-07-03
Posts: 1000+

Re: New Stages?

That's how you do it. I would post an example project, but I can't now. Sorry.

Offline

 

#5 2010-03-31 22:24:06

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: New Stages?

Well, it really depends. If you want a game that changes in a time limit or a game that proceeds when a goal is reached.<when green flag clicked><forever><if><touching color[ Goal color here <change{ Level  }by(1 <go to x sad  Start spot )y:(start spot)>  For the character sprite
<when green flag clicked> <forever><switch to costume[ Level
Is for the background.

Last edited by AtomicBawm3 (2010-03-31 22:27:35)


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#6 2010-04-01 04:28:58

cheeseeeeee
Scratcher
Registered: 2010-04-01
Posts: 1

Re: New Stages?

i am making a load of tutorials for scratch, this is going to be on my first one

Offline

 

Board footer