How do I change TD game speed?

0 favourites
  • 7 posts
From the Asset Store
Customize the animation of character when item changed
  • 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.

  • 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.

  • 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.

  • ... and does that mean on different computers/platforms, there is no guarantee that the game will play the same?!!

  • I think time scale works like dt. But i may be wrong. Check the manual... Search time scale.

  • It's likely something in your code. If you post your capx someone can help you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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