How do I

Get help using Construct 2

Post » Thu May 08, 2014 5:01 am

i'm creating a wave type game for each wave i want to add an enemy for example wave 1/1 enemy which is fine but for wave 2/2 enemies wave 3/3 enemies wave 4/4 enemies and so on how do i do this without programming each wave seperate.
B
10
S
3
G
1
Posts: 5
Reputation: 896

Post » Thu May 08, 2014 5:52 am

1. Put a better description on your thread (change the subject/title to something a bit more descriptive) or you will get a lot of people who don't have time to read every post that won't even click on it.

2. The easiest way is to use variables to set the enemies health, speed, etc... then in each wave, just set the variables to the number of the wave or some number related to it.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Thu May 08, 2014 6:11 am

Thanks blue but in beginners terms?
B
10
S
3
G
1
Posts: 5
Reputation: 896

Post » Thu May 08, 2014 6:15 am

Take a look at the manual on instance variables. Create instance variables for health, speed and anything else you want to change for each wave. Then in your events when you spawn the enemies you can do something like this: spawn object (Enemy), Set Enemy.Health = wave, Set Enemy.Speed = wave*10.

Things like that. If this isn't making much sense, I highly recommend going through the manual and also going through some of the tutorials as they cover most of this as well. Also check out some of the built in examples that come with C2 like the space shooters etc... that get harder as you go. I have to go to bed, hope this helps.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583


Return to How do I....?

Who is online

Users browsing this forum: blue visionary and 24 guests