So, here's how this plugin works.
1.In the plugin settings, you can choose the color for the too low segment, the too high segment, and the segment where you have to hit the action button at (which I will refer to as the correct segment) or touch/click the screen. By default, the too low segment is green, the too high segment is red, and the correct segment is yellow.
2.The plugin is executed through script calls as something like this:
powerminigame(speed,position,difficulty,location)
3.The plugin returns a specific value depending on where the cursor was when the action button was triggered.
1.In the plugin settings, you can choose the color for the too low segment, the too high segment, and the segment where you have to hit the action button at (which I will refer to as the correct segment) or touch/click the screen. By default, the too low segment is green, the too high segment is red, and the correct segment is yellow.
2.The plugin is executed through script calls as something like this:
powerminigame(speed,position,difficulty,location)
- Speed is the speed of the bar's cursor, where higher numbers indicate a faster cursor.
- Position is the position (in decimal) of where the correct segment is located. (0 is completely to the left left/bottom of the bar (depending on the location), 1 is completely to the right/top, 0.5 is in the center, etc.)
- Difficulty is basically the reciprocal of how much space the correct segment takes up on the bar (So if the difficulty is 10, the correct segment will take up 1/10th of the bar)
- Location is basically the position the bar is in on screen. (0 is on top, 1 is the bottom, 2 is on the left, and 3 is on the right)
3.The plugin returns a specific value depending on where the cursor was when the action button was triggered.
- 0 is returned if the button was hit too early.
- 1 is returned if the button was hit at the correct moment, when the center of the cursor is positioned over the correct segment.
- 2 is returned if the button was hit too late or the player failed to hit the button before the cursor hit the edge of the bar.