How would I size a part based on a amount of time and a speed?

I am making a rhythm game, similar to osu!, Robeats, and other four keyed rhythm games. I already know how to make the mechanics for a hold note, but I would like to be pointed towards the right direction when it comes to stretching the part based on the longetivity of said hold note. I’m looking for an effect similar to this image, taken from the osu! knowledge base:
image

Also the effect of the note shortening while the player is hitting it would be helpful. Help is appreciated!

1 Like

When you stretch the size, move the part in the direction the same length so it “grows”.

My main focus is the original size of the part, between the end and beginning of the hold note. I’m trying to find the length of it based on the speed that everything is scrolling, as well as the length of the note itself.

s = v * t

Where s is the size, v is the speed, and t is the time.

1 Like

I’ll try it out and see what I can do with it.