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

#1 2010-07-06 17:18:21

cgerbrick
Scratcher
Registered: 2010-06-11
Posts: 5

Need help with game levels

I need help using scripts to get my sprites to different levels in a game.  Please help.

Offline

 

#2 2010-07-06 18:49:37

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Need help with game levels

Well, this is a pretty open question. What is your project like so far? Can you upload it so some of us in the Scratch Community can help you with it? There are so many ways to do it, but if we know what your project is like, we can figure out a possible solution that best fits in your project. Thanks
~coka


http://i42.tinypic.com/2rot8c2.png

Offline

 

#3 2010-07-06 22:20:05

cgerbrick
Scratcher
Registered: 2010-06-11
Posts: 5

Re: Need help with game levels

http://scratch.mit.edu/users/cgerbrick

Here is my latest game I just posted.  Need help with getting to different levels.  Check it out.

Offline

 

#4 2010-07-07 00:49:47

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Need help with game levels

What you need to do is this:

Code:

When green flag clicked
Forever if [(score > 7) and (background # < 3)
   next background
   set score to [0]
   broadcast [next level]
EndForeverIf

You also need each food sprite to show and move to their original positions when they recieve the next level broadcast. For example:

Code:

When I recieve [next level]
show
go to x: [180] y: [50]

smile

Do you need help with anything else?


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer