Skip to content

Large number of platforms are spawned unnecessarily after player death and respawn #4

@agmathew

Description

@agmathew

When the player dies and respawns, we don't reset the next_spawn_time in game.gd, which results in the following code in game.gd to spawn platforms every frame:

if Time.get_ticks_msec() > next_spawn_time:
  _spawn_next_platform()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions