Instantly share code, notes, and snippets.

Embed
What would you like to do?
11.9 Add method to allow players on next level scene to continue
Method NextLevel()
game_state = STATE_LEVEL
start_time = Millisecs()
next_level_scene.SetActive(False)
next_level_scene.SetVisible(False)
game_over_scene.SetVisible(False)
play_scene.SetActive(True)
play_scene.SetAlpha(1.0)
For Local enemy:Character = Eachin Self.enemies
enemy.box.Remove()
Self.enemies.RemoveFirst(enemy)
End
For Local projectile:Projectile = Eachin Self.projectiles
projectile.box.Remove()
Self.projectiles.RemoveFirst(projectile)
End
final_boss.box.Remove()
End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment