Making level problem

I am trying to make a defense game that has a wave each level, I was wondering on how I can make for example a level 2 with a spawning limit. I can make it for level one but when i tried to make level 2 the game would freeze and mess up.

Best Answer

  • CaptFinnCaptFinn Posts: 1,828
    Accepted Answer

    I would make a index attribute. call it Wave. Then have something trigger that attribute to change +1 after each level is complete.

    Wave=0

    This is before level 1 starts.... while you are in menu or looking at scores etc etc.

    Wave=1

    This changes the moment you hit play at the beginning.

    Wave=2

    What ever triggers the level to be complete could also change Wave to Wave+1 ( now making wave=2.

    And so on.

    Reseting Game makes Wave = 0

    Try Again--Wave=0 etc etc

Answers

Sign In or Register to comment.