Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

How do I make it so when the enemy sings your health drains? #2337

Discussion options

You must be logged in to vote

im still experimenting with this myself so there's a few bugs and whatnot (for example, hold notes act like they do in the base game), but here's a primitive version on how to do it:
Open up PlayState.hx, navigate to around line 3000. (if you cant find the area, use the find command (ctrl + f) and look for this:

						dad.holdTimer = 0;

						if (SONG.needsVoices)
							vocals.volume = 1;
				}
				daNote.active = false;

				daNote.kill();
				notes.remove(daNote, true);
				daNote.destroy();

)
right above daNote.active = false; , slip in health -= 0.03; (it doesnt HAVE to be 0.03, but thats my recommendation).
now, if you DONT want the enemy to kill you, change the code to an if-then…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BrandonHatesAnime
Comment options

@SuxxorState
Comment options

@BrandonHatesAnime
Comment options

Answer selected by BrandonHatesAnime
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