Game Development Community

knowing where to continue (solved)

by rennie moffat · in iTorque 2D · 04/13/2011 (10:08 am) · 1 replies

Hi there,
I am trying to wrap my head around the condition needed to create a new game and or continue. Lets say I have 30 levels. On a new game, only level 1 is playable. You must clear level 1 to get to 2 and so forth. That is easy enough to do when it is a brand new game but if I have a continue game where I have already cleared 7 levels. Then what would the condition be in order to have those 7 levels playable, and still have the rest locked?


What I am working with is...
function onLevelLoaded(%this)
{

///need to figure out what level is furthest reached. Anywhere between 0 and 29.

if($LevelPlayed != XXXX??)
{
///then this is where I am confused.
}


}

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
04/13/2011 (11:31 am)
I guess i had to get into the coding, more. But I found my answer.

Thanks.