Vasar007 / TIMLE

Official repository of the 2D platformer game "This Is My Last Escapade" (TIMLE).
Apache License 2.0
1 stars 1 forks source link

Optimize spawning dwarven squad #32

Open Vasar007 opened 5 years ago

Vasar007 commented 5 years ago

Describe the bug When player trigger dwarven commander, he spawned additional two dwarven soldiers. At this time game can be freeze.

To Reproduce Steps to reproduce the behavior:

  1. Play the game;
  2. Find a dwarven commander;
  3. Come closer and trigger him;
  4. See freezes.

Expected behavior Spawning squad should be without any lags and freezes. I suppose we need to create and pre-load all squads during level loading and building the scene (in world class). This can help to avoid problems with dwarven soldiers.

Additional context Any other way of solving problem is appropriate if we will have no freezes.