Custom NoteKind #4042
Unanswered
Amazonsphinx
asked this question in
Q&A
Custom NoteKind
#4042
Replies: 1 comment 1 reply
-
Example pulled from #2635: import funkin.play.notes.notekind.NoteKind;
class Mine extends NoteKind {
function new() {
var name:String = 'mine';
var title:String = 'Mine';
var noteStyleId:String = 'pixel';
var params = [
{
name: 'mineDamage',
title: 'Dealt Damage',
type: 'float',
min: 0.0,
max: 2.0,
step: 0.1,
precision: 1,
defaultValue: 2.0
}
];
super(name, title, noteStyleId, params);
}
override function onNoteMiss(event:NoteScriptEvent) {
event.healthChange = -event.note.getParam('mineDamage');
}
override function onUpdate(event:UpdateScriptEvent) {
for (note in this.getNotes()) {
note.hsvShader.hue += event.elapsed;
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make a basic custom notekind with a unique note texture that drains your health when you hit it, just as a little test, but I am unsure how the Notekind works. I can't seem to figure out how to find it on the Notekind drop down in the chart editor, and when I try to use the custom part of the dropdown, I still get nothing.
Beta Was this translation helpful? Give feedback.
All reactions