Huh, I wonder why that suddenly works for me now. It did not seem to work when i was trying it with out the switch, maybe it was something that I removed at some point and didn’t notice.
I now have another two things working so far, Pointer speeding up per hit, and goal randomly changing position for phases that will require that.
I do have a slight issue with the goal currently though. It seems that if the goals center is with in 14 degrees of the top, it does not detect hits consitently.
I assume this is similar to when i was getting false goal hits because i made the hit zone for the moving goal 30 degrees, and on one side it becomes negative and would count everything past that as the goal. But I do not know how to fix it outside of limiting the goals random placement by offsetting it 15 degrees from the top.
This is what i have so far. Just working on getting things working well one at a time.
◆Comment:NOTE TO SELF!!! DONT FORGET TO COMMENT WHAT STUFF DOES!!!
: :IF YOU DO YOU WILL REGRET IT MISTER "I WILL REMEMBER LATER"!!!
◆Comment:0021 for pointer angle, 0022 for set pointer speed
: :0023 for goal center, 0025 for speed increase
◆Control Variables:#0021 Pointer Angle = 0
◆Control Variables:#0022 Pointer Speed = 2
◆Control Variables:#0025 Increase Speed = 2
◆Comment:Limiting center of goal to 15 degrees from the top for now until I
: :learn the math needed so it stops ignoring the hits on left side.
◆Control Variables:#0023 Goal Center Angle = Random 15..345
◆Comment:Load Images for mini game
: :Remember it layers in order, 1 is bottom.
◆Show Picture:#1, 01_Circle_Test, Center (552,312), (100%,100%), 255, Normal
◆Show Picture:#2, 01_Goal_Test, Center (552,312), (100%,100%), 255, Normal
◆Show Picture:#3, 01_Pointer_Test, Center (552,312), (100%,100%), 255, Normal
◆Comment:Mini Game Loop
: :Currently Infinte because no break yet. Dont forget
◆Loop
◆Comment:First Two branches for pointer rebounding.
◆If:Pointer Angle ≥ 360
◆Control Variables:#0022 Pointer Speed = Increase Speed
◆Control Variables:#0022 Pointer Speed *= -1
◆
:End
◆If:Pointer Angle ≤ 0
◆Control Variables:#0022 Pointer Speed = Increase Speed
◆
:End
◆Comment:Angles and rotation
◆Control Variables:#0021 Pointer Angle += Pointer Speed
◆Script:$gameScreen.picture(3)._angle = $gameVariables.value(21);
◆Script:$gameScreen.picture(2)._angle = $gameVariables.value(23);
◆Comment:Goal Hit Check Testing
: :
: :REMEMBER FOR LATER PRESSED DOWN WORKS FOR HOLDS
: :USE TRIGGERED FOR SINGLE PRESSES
◆If:Button [OK] is being triggered
◆Control Variables:#0024 Angle Distance = Pointer Angle
◆Control Variables:#0024 Angle Distance -= Goal Center Angle
◆If:Angle Distance < 0
◆Comment:Stops false goal hits. IMPORTANT TO REMEMBER THIS
◆Control Variables:#0024 Angle Distance *= -1
◆
:End
◆Comment:Test goal width is 30 degrees.
◆If:Angle Distance ≤ 15
◆Comment:Speed increase that works on successful hits
◆Control Variables:#0025 Increase Speed += 1
◆Comment:Remember the negative speed values exist and need this.
◆If:Pointer Speed > 0
◆Control Variables:#0022 Pointer Speed = Increase Speed
◆
:Else
◆Control Variables:#0022 Pointer Speed = Increase Speed
◆Control Variables:#0022 Pointer Speed *= -1
◆
:End
◆Comment:Goal placement shifts randomly on the circle.
: :
: :Does not work on left side if goal passes over the top.
: :Maybe some script can fix, look in to later.
◆Control Variables:#0023 Goal Center Angle = Random 15..345
◆Wait:1 frame
◆
:Else
◆Comment:Missed goal hit
: :
: :IDEA!!! Make a point system to determine quality and misses
: :reduce it while successful hits increase it.
: :Make phases timed and a max point cap.
◆Wait:1 frame
◆
:End
◆
:End
◆Wait:1 frame
◆
:Repeat Above