Skip to content

Adding Note Types

protogenposting edited this page Dec 7, 2023 · 1 revision

This wiki page will show how to create custom note types.


Step 1, detecting the note type/note functionality

The note functions are all handled in the step event of stats, in the "hitting notes" region (line 52).

to detect your note type simply add this code after line 58 or 96.

if(notes[i].type==<note type>) { if(keyboard_check_pressed(global.lanekeys[notes[i].lane])/*&&!lanesHit[notes[i].lane]||editor.botplay&&scoreFromHit>=100 uncomment this and remove this text to allow this note to be hit in botplay*/) { //add code for when the note is hit here } }

you can replace in the first line with whatever you want your type id to be.

you can now add whatever code you want where the comment says.

Step 2, rendering the note.

for note rendering go to line 23 of the draw event of stats.

add this code for your note type.

if(notes[shownNotes[i]].type==<note type>) { draw_note_<note type>(_x,_y) }

then go up to the top of the script and add a function for your note type.

function draw_note_<note type>(_x,_y){ draw_sprite(<insert sprite for your note here.>,0,_x,_y) }

if you want to add any other flashy effects, go ahead.

Clone this wiki locally