How do I make it so when the enemy sings your health drains? #2337
-
Hi, I've seen some tutorials on this but it's on the OG source code and it didn't work on the Kade Engine one. Can someone tell me how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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:
) thats it really |
Beta Was this translation helpful? Give feedback.
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:
)
right above
daNote.active = false;
, slip inhealth -= 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…