#Hold Note Movement Is BROKEN In My Game

1 messages · Page 1 of 1 (latest)

lament basalt
#

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

#

This is the result I unfortunately get, I kinda broke everything

#

Anyone have any ideas on what's wrong? This is too much math and stuff for me to understand what im doing anymore

lament basalt
#

Hold Notes Broken In My Game