Yeah, so I tried adding a few things to my HoldNote script, which was:
-
QoL: making the bottom of the note be hidden, and making it stay stationary so that it looks like the note is being eaten by the hitbox as the player holds down
-
Bug: Note not going to get destroyed when it wasnt hit (fixed)
-
Bug: Note being able to be hit halfway through (maybe fixed?)
Anyway, I have just created a game breaking bug when i was trying to calculate the distance between the BottomOfNote and EndHoldObject gameobjects, so that I can use that to offset the EndHoldObject by an amount when moving the whole note itself.
Here's my code:
https://pastebin.com/sXc0fEGy
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.