How do I every two levels

0 favourites
  • 10 posts
From the Asset Store
This is a Dungeon Master tool & the 1st of 12 Combat Engines from the Building Combat Engines for Browser Games workshop
  • Hi,

    I am making an Wave Design Game!

    So I want that every 2nd Wave a Boss is spawning. The Game has got unlimited waves, so I dont want to compare variables for example: Wave = 2 Wave = 4 Wave = 6 ...

    Is there an other Way?

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Decide how long you want a wave to last and set an event that begins when the game starts that waits x time then sets a variable to 1, repeats and sets to 0, repeat... and have your boss triggered however long after this variable is detected to be 1.

    My side scrolling space shooter (in my sig) uses waves simply for time, I have 100 waves till final boss. I can adjust my wave length (pun) to decide how long it takes the player to reach the end to keep it from getting boring, or too easy. In mine currently every 7 seconds a new wave begins and on waves 25, 50, and 75 a boss spawns and on 100 the final boss spawns. I toyed with making it infinity style but realized pretty quick that creating new content and scaling up current enemies forever you eventually reach a critical mass with a shooter unlike an obstacle avoiding game where its the players concentration or rhythm that carries them through.

  • Create a real time timer,

    so if ms = 60 then sec = 1, ms = 0 and the proc startes over.

    so if sec >= 2 event start, sec = 0, ms = 0.

  • Hi,

    I am making an Wave Design Game!

    So I want that every 2 second Wave a Boss is spawning. The Game has got unlimited waves, so I dont want to compare variables for example: Wave = 2 Wave = 4 Wave = 6 ...

    Is there an other Way?

    Thanks

    (Wave% 2) will be equal to 0 for wave 0, 2, 4, 6, 8, 10, 12, etc.... so you could maybe use that information.

  • What Aphrodite said. Create a variable ("WaveNumber") and set an event that has the following condition:

    (Compare two values (this is a condition that can be found on the System conditions))

    WaveNumber % 2 is equal to 0 ----> Sustem | Create BOSS object...

  • What do you mean with %2 - Where must I include this?

    I can only Compare=

    WaveVariable = xy....

  • System, Compare two values:

    First value:WaveVariable%2

    Is equal to

    Second value:0

    You have to write the "WaveVariable%2" inside the first value.

  • Ok I did a test and realized that if you want to have the enemy waves in the following order [normal wave, normal wave, Boss wave, ...] then you'll have to use WaveVariable % 3, not % 2.

    Here is a practical example.

  • eli0s Nice solution!

  • Thank you Iolva

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)