Skip to main content
deborahb44958436
Inspiring
April 1, 2015
Answered

2 quick questions

  • April 1, 2015
  • 1 reply
  • 354 views

1.) in my game I want the game to move on to the next level when the player collected an additional 300 points. So I have variable name "Score" that contains the previous collected points. what is the condition code that I can use for adding the points and then moving on to the next level. can you give me an example?

2.) How to tell flash to remember that last played level? So after the played quit the game flash will starts playing from the last played level.

This topic has been closed for replies.
Correct answer kglad

1.  use

Score+=increment_Score_by_this_amount;

if(Score>=nextlevelscore){

// go to next level)

}

2. use the sharedobject

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 1, 2015

1.  use

Score+=increment_Score_by_this_amount;

if(Score>=nextlevelscore){

// go to next level)

}

2. use the sharedobject

deborahb44958436
Inspiring
April 1, 2015

OK great. number 1 worked number 2 I still need to figured it out. Thanks

kglad
Community Expert
Community Expert
April 1, 2015

you're welcome.