How do I change TD game speed?

Get help using Construct 2

Post » Wed Dec 21, 2016 2:42 pm

Hello all,

I am working on a Tower Defence game and usually those games have a button to fast forward (speed up the game). I want to add one to mine and the first thing I thought of, was to have a button that toggles the time scale between 1 and 2. Unfortunately, the game plays differently when time scale is set to 2.
In normal speed (1), four towers were enough to clear the wave, but when speed is (2), not even 7 towers were enough.

I am not sure why that is. As far as I understand, the time scale should affect the towers and the enemies alike.

Is there a way to make this work?

Many thanks in advance.
B
14
S
3
Posts: 29
Reputation: 870

Post » Wed Dec 21, 2016 6:31 pm

Hmmm....You could try and play around with the time scale 1st. You don't have to have it at 1 or 2 or 3. You can put it at 1.3, 1.6, etc. etc.

You could also change the object time scale for certain objects or enemies, or yourself.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Dec 21, 2016 6:42 pm

Thanks jeffige for the answer. If I do that based on trial and error, I would have to try it in each level/wave combinations and with the various tower types. Even then, it will not guarantee 100% same effect as at speed =1.
I wonder why time scaling the whole game didn't work? In theory it should work because the change in scale affects all the elements.
B
14
S
3
Posts: 29
Reputation: 870

Post » Wed Dec 21, 2016 6:44 pm

... and does that mean on different computers/platforms, there is no guarantee that the game will play the same?!!
B
14
S
3
Posts: 29
Reputation: 870

Post » Wed Dec 21, 2016 7:05 pm

I think time scale works like dt. But i may be wrong. Check the manual... Search time scale.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Dec 21, 2016 7:14 pm

It's likely something in your code. If you post your capx someone can help you.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Wed Dec 21, 2016 7:31 pm

My capx at this stage is very big and complex but the issue can be duplicated by using the standard "turret defence" project that comes with Construct 2.

1- Start a new project and use the "Turret Defence" template.
2- run the project --> the five turrets at the beginning of the demo last a long time preventing the enemy from going through. The enemy kill rate is high
3- Add a "Set time scale to 6" under the "On start of layout" event.
4- Run again --> The turrets are defeated very quickly. Only the 1st 13 enemies are killed, then all the other enemies go through.
B
14
S
3
Posts: 29
Reputation: 870


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, jorgmaquoi and 10 guests