mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
fix checkpoint powerup state
This commit is contained in:
parent
7ccc770cb7
commit
a3bfa9afd9
1 changed files with 4 additions and 2 deletions
|
|
@ -1743,8 +1743,10 @@ class MarbleWorld extends Scheduler {
|
||||||
this.outOfBounds = false;
|
this.outOfBounds = false;
|
||||||
this.deselectPowerUp(); // Always deselect first
|
this.deselectPowerUp(); // Always deselect first
|
||||||
// Wait a bit to select the powerup to prevent immediately using it incase the user skipped the OOB screen by clicking
|
// Wait a bit to select the powerup to prevent immediately using it incase the user skipped the OOB screen by clicking
|
||||||
if (this.checkpointHeldPowerup != null)
|
if (this.checkpointHeldPowerup != null) {
|
||||||
this.schedule(this.timeState.currentAttemptTime + 0.5, () -> this.pickUpPowerUp(this.checkpointHeldPowerup));
|
var powerup = this.checkpointHeldPowerup;
|
||||||
|
this.pickUpPowerUp(powerup);
|
||||||
|
}
|
||||||
AudioManager.playSound(ResourceLoader.getResource('data/sound/spawn_alternate.wav', ResourceLoader.getAudio, this.soundResources));
|
AudioManager.playSound(ResourceLoader.getResource('data/sound/spawn_alternate.wav', ResourceLoader.getAudio, this.soundResources));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue