Skip to content

Commit

Permalink
Fix scroll speed arrow for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
superpowers04 committed Jan 9, 2025
1 parent 6e0f880 commit ffa41b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions source/Options.hx
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class ScrollSpeedOption extends HCFloatOption{
public var note:Note;
public var strum:StrumArrow;
var hasLoaded:Bool = false;
var pressed:Bool = false;
var pressed:Bool = true;
override public function new(){
super('Scroll Speed',"Change your scroll speed (1 = Chart dependent)","scrollSpeed",0.1,10,0.1);
}
Expand All @@ -571,6 +571,7 @@ class ScrollSpeedOption extends HCFloatOption{

strum.update(e);
note.update(e);
note.y = 1920;
// trace(dist);

}
Expand All @@ -579,7 +580,10 @@ class ScrollSpeedOption extends HCFloatOption{
var dist = (Conductor.songPosition - note.strumTime);
var _scrollSpeed = SESave.data.scrollSpeed;
Conductor.update();

if(dist > 1000 || pressed){
pressed = false;
note.strumTime = Conductor.songPosition + ((_scrollSpeed < 3) ? (500/_scrollSpeed) : 500);
}
if(!pressed && dist > -20 && dist < 100){
strum.confirm();
note.alpha = 0.5;
Expand All @@ -597,10 +601,7 @@ class ScrollSpeedOption extends HCFloatOption{
strum.y = 120;
note.y = strum.y - note.distanceToSprite;
}
if(pressed && (note.y < -20 || note.y > 1300)){
pressed = false;
note.strumTime = Conductor.songPosition + (500/_scrollSpeed);
}

strum.draw();
note.draw();
}
Expand Down
2 changes: 1 addition & 1 deletion version.downloadMe
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
25.01.08.1803;
25.01.08.2200;
* Better Psych character support(Still kinda experimental but should be more stable)
* Fix some small errors
* Fix characters not loading due to using ID instead of folderName
Expand Down

0 comments on commit ffa41b8

Please sign in to comment.