How do I every two levels

Get help using Construct 2

Post » Tue Oct 21, 2014 6:52 pm

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
Last edited by PlasmaGames2013 on Wed Oct 22, 2014 3:29 pm, edited 1 time in total.
B
11
S
2
Posts: 93
Reputation: 917

Post » Tue Oct 21, 2014 7:04 pm

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.
Last edited by chrisinfinger on Tue Oct 21, 2014 7:10 pm, edited 1 time in total.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Tue Oct 21, 2014 7:07 pm

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.
Working on a Action RPG
B
8
S
4
G
4
Posts: 18
Reputation: 2,734

Post » Tue Oct 21, 2014 7:11 pm

PlasmaGames2013 wrote: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.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Tue Oct 21, 2014 8:18 pm

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...
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Oct 22, 2014 3:29 pm

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

I can only Compare=

WaveVariable = xy....
B
11
S
2
Posts: 93
Reputation: 917

Post » Wed Oct 22, 2014 7:37 pm

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.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Oct 22, 2014 10:49 pm

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.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Oct 22, 2014 10:54 pm

@eli0s Nice solution!
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Thu Oct 23, 2014 1:04 am

Thank you @Iolva :oops:
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests