Funkin icon indicating copy to clipboard operation
Funkin copied to clipboard

[FEATURE] Scroll Speed Event

Open Burgerballs opened this issue 1 year ago • 15 comments

https://github.com/FunkinCrew/Funkin/assets/107233412/d0626047-9dad-4ac7-8e01-3ced7b20f69f

What this PR does is implement a new event that sets the current scroll speed. As well as a public scrollSpeed variable in Strumline. Without adding any sustain-related rendering issues.

image

This PR also adds a parentStrumline variable to SustainTrail, and a way for it to redraw once the scroll speed changes.

https://github.com/FunkinCrew/Funkin/assets/107233412/8b5fe4d9-e78b-4000-afc0-7cb744b5d234

The event can also affect either strumline, an example of this is the video above!

image This event can also set the base scroll directly instead of acting as a multiplier (disabled by default)!

Setting the value to 1 with Absolute disabled will set the speed to the default. (important)

PS; i ACTUALLY tested it this time

Burgerballs avatar May 09 '24 17:05 Burgerballs

Converted to draft in order to add an extra cool feature. Changing the speed of a single strumline!

Burgerballs avatar May 10 '24 17:05 Burgerballs

shouldn't it be just to set the new scroll speed? i think that'd be nicer...

amyspark-ng avatar May 10 '24 17:05 amyspark-ng

shouldn't it be just to set the new scroll speed? i think that'd be nicer...

Noted, making changes right now

Burgerballs avatar May 10 '24 19:05 Burgerballs

I have now undrafted it lol

Burgerballs avatar May 10 '24 20:05 Burgerballs

This is pretty awesome

amyspark-ng avatar May 11 '24 00:05 amyspark-ng

is there anything else that should be added to this or is it all good

Burgerballs avatar May 12 '24 17:05 Burgerballs

this is pretty awesome ! Gonna ping @EliteMasterEric for his thoughts on how it's implemented code wise, but def something we can use in places ! Thanks!

ninjamuffin99 avatar May 15 '24 01:05 ninjamuffin99

this is pretty awesome ! Gonna ping @EliteMasterEric for his thoughts on how it's implemented code wise, but def something we can use in places ! Thanks!

Thank you!

Burgerballs avatar May 15 '24 06:05 Burgerballs

Once I can check the code more thoroughly I can give more feedback, but I like this in general.

Have you tried seeing how it reacts visually when changing scroll speed while notes are visible? The tween should keep it from glitching but I'm curious how it looks.

Also, 1.0 should reset to the base scroll speed, not 0.0.

Maybe there could also be an absolute checkbox (unchecked by default) that sets the value rather than applying a multiplier?

EliteMasterEric avatar May 15 '24 11:05 EliteMasterEric

Once I can check the code more thoroughly I can give more feedback, but I like this in general.

Have you tried seeing how it reacts visually when changing scroll speed while notes are visible? The tween should keep it from glitching but I'm curious how it looks.

Also, 1.0 should reset to the base scroll speed, not 0.0.

Maybe there could also be an absolute checkbox (unchecked by default) that sets the value rather than applying a multiplier?

Sounds like good ideas, i'll try to put them in, unrelated but in it's current state the event sets the absolute speed, I will add multiplication tho as it seems easy to do on paper.

Burgerballs avatar May 15 '24 14:05 Burgerballs

don e

Burgerballs avatar May 15 '24 16:05 Burgerballs

the sustains were broke but now they not :D

Burgerballs avatar May 15 '24 16:05 Burgerballs

@EliteMasterEric once ur able to check the code could you make sure to tell me if theres anything wrong

Burgerballs avatar May 17 '24 05:05 Burgerballs

I've been busy with other tasks lately, I will definitely look into reviewing it soon-ish!

If it looks good and doesn't have any problematic bugs, I will try to merge it to have it available for the next content update.

EliteMasterEric avatar May 17 '24 23:05 EliteMasterEric

I've been busy with other tasks lately, I will definitely look into reviewing it soon-ish!

If it looks good and doesn't have any problematic bugs, I will try to merge it to have it available for the next content update.

Alr!

Burgerballs avatar May 17 '24 23:05 Burgerballs

:p

Burgerballs avatar May 28 '24 12:05 Burgerballs

Finally got around to testing this and it worked great!

EliteMasterEric avatar May 30 '24 03:05 EliteMasterEric