Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Quick restart / "NOT R" #2442

Closed
amyspark-ng opened this issue May 11, 2024 · 4 comments
Closed

Enhancement: Quick restart / "NOT R" #2442

amyspark-ng opened this issue May 11, 2024 · 4 comments
Labels
status: rejected Issue did not pass review or PR cannot be approved. type: enhancement Involves an enhancement or new feature.

Comments

@amyspark-ng
Copy link
Contributor

Please check for duplicates or similar issues before creating this issue.

What is your suggestion, and why should it be implemented?

There should be a key to make a quick restart, i know pressing R instantly kills you, but this is pretty slow since you have to go through the death animation, i think this should instead do the same as Restart song and instead pressing Ctrl + R or any other key for debugging should kill you instead

@amyspark-ng amyspark-ng added the type: enhancement Involves an enhancement or new feature. label May 11, 2024
@EliteMasterEric EliteMasterEric added status: pending triage Awaiting review. and removed type: enhancement Involves an enhancement or new feature. labels Jun 17, 2024
@EliteMasterEric EliteMasterEric added type: enhancement Involves an enhancement or new feature. status: rejected Issue did not pass review or PR cannot be approved. and removed status: pending triage Awaiting review. labels Jul 22, 2024
@EliteMasterEric EliteMasterEric closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2024
@amyspark-ng
Copy link
Contributor Author

aw

@AbnormalPoof
Copy link
Collaborator

I'm one month late, but you can recreate this very easily within HScript.

import funkin.modding.module.Module;
import funkin.play.PlayState;
import flixel.FlxG;

class QuickReset extends Module {
  function new() {
    super('QuickReset');
  }

  function onUpdate(event) {
    if (PlayState.instance != null) {
      if (FlxG.keys.pressed.CONTROL) {
        if (FlxG.keys.justPressed.F) {
          PlayState.instance.needsReset = true;
        }
      }
    }
  }
}

@amyspark-ng
Copy link
Contributor Author

amyspark-ng commented Aug 20, 2024

oh that's awesome, would there be a way to cancel the blue balls event with R? or would i just not set the keybind

@AbnormalPoof
Copy link
Collaborator

AbnormalPoof commented Aug 20, 2024

Not really, since calling event.cancel(); in onGameOver() will still trigger the Game Over screen. You can simply unbind the reset key though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: rejected Issue did not pass review or PR cannot be approved. type: enhancement Involves an enhancement or new feature.
Projects
None yet
Development

No branches or pull requests

3 participants