Skip to content
Discussion options

You must be logged in to vote

On any callback that uses NoteHitEvent, you can call preventDeletion to tell the game to avoid deleting that note upon hitting it. For example, something like this should force the notes to not be deleted if the opponent presses them:

function onDadHit(event:NoteHitEvent):Void
    event.preventDeletion();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TheStinkern
Comment options

@r6915ee
Comment options

Answer selected by TheStinkern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants