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

#1 2012-06-22 17:43:58

XxEliteJJzZ
New Scratcher
Registered: 2012-01-11
Posts: 6

Level Help?

I have posted this before but i will again... I have a multiple level game...
http://scratch.mit.edu/projects/XxEliteJJzZ/2628882
And at every level i want to spawn at the start of that level not the whole game AND i want it so if your life count drops below 0 you start from the beginning of game...

Please can you help by posting what i need to do as in my eyes this is hard :3

Offline

 

#2 2012-06-22 18:13:41

cbcollab
Scratcher
Registered: 2011-10-30
Posts: 38

Re: Level Help?

well to fix your problem with having you spawn at the beginning of the game, you need to make a variable.  make a variable called "level" or something and then each level that you beat, change it by 1.  but when you die (or touch red) set that variable to 1. then when the stage receives the broadcast "gameover", have them go to their places for level one.

this is for the sprite that you control

when gf clicked
forever
   if <(touching color [red]?)>
   set [level v] to [1]
   broadcast [Gameover v]
This is for the enemy sprites:

when I receive [Gameover v]
if <(level) = [1]>
go to x: [where it should go for level one] y: [.....]

Last edited by cbcollab (2012-06-22 18:16:46)


http://i40.tinypic.com/2z9i2c3.png

Offline

 

Board footer