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

#1 2012-12-25 17:40:09

18329068
New Scratcher
Registered: 2012-03-01
Posts: 1

links

How do you link the levels of a scratch game together?

Offline

 

#2 2012-12-27 10:19:25

Kileymeister_test
Scratcher
Registered: 2010-01-31
Posts: 100+

Re: links

That would depend on how you made your levels.  Is each level a background?  Does it consist of multiple sprites?

The most versatile method I can think of is to include a new variable called "Level" and set it to 1 at the beginning.  Now, whenever a sprite appears on a certain level, they can check if the level is the appropriate number.

For example, if a bad guy shows up on level 3, then add:
http://i47.tinypic.com/24ci7pv.gif
If the background changes according to level, just add in a:
http://i48.tinypic.com/35bwbvk.gif
When the level is supposed to change, just change Level by 1.

If your player sprite needs to reset his position when the level changes, add this:
http://i45.tinypic.com/28k67v8.gif

If you need anything else or have questions about what I wrote, just ask.

Last edited by Kileymeister_test (2012-12-27 10:24:26)


Kileymeister's test account.  I upload engines and demos and stuff for public use.
Currently Working on: Grapple Arms!

Offline

 

Board footer