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

#1 2008-08-23 16:33:28

SkyWire101
Scratcher
Registered: 2008-07-31
Posts: 11

help with variables

how do i make my game so that if Kills(variable) reaches 20 go to next level?

Offline

 

#2 2008-08-23 16:50:00

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: help with variables

WHen Flag clicked
Set Kills to 0
Forever If (Kills > 19)
Change Level by 1 / Broadcast next level
set kills to 0

Offline

 

#3 2008-08-23 19:45:20

dingdong
Scratcher
Registered: 2007-08-09
Posts: 1000+

Re: help with variables

another way is to use a variable called "level" used in
forever if (kill > ((20 * level) - 1) )
change level by (1)

it all depends on the game

Last edited by dingdong (2008-08-23 19:45:34)


http://img851.imageshack.us/img851/2829/superanbanner.png
click the image for my music

Offline

 

Board footer