Ryuka

Regular
Regular
Joined
Feb 28, 2021
Messages
61
Reaction score
11
First Language
English
Primarily Uses
N/A
Hi guys im trying to make a weight lifting mini game.
The basic idea would be that by pressing 'ENTER,' the character lifts the weight.
The position of the weight would be illustrated by different pictures. (To every points we earn by pressing ENTER belong 1 image.
There would be a resistance( force(Counterweight) that pulls the weight back.
Each time the player reaches 20 points (by pressing ENTER), he gets 1 StrengthPoint. (After 3 StrengthPoints the game ends.)
(It would be exactly like in GTA San Andreas, for those who have played it, they will know.)

The problem I'm facing is that everything works flawlessly until the player reaches the 3rd StrengthPoint, and then for some reason, the event starts repeating itself. As you can see in the images, the game displays the word "win," and I set it to switch to the next page with a Self Switch. However, it keeps repeating just the word "win." I've tried every possible solution that came to my mind, but I couldn't resolve it.

I didn't provide explanations for the 4th and 5th pages because I assume it's evident that they are responsible for switching between images.

Thank you in advance for your help!"
 

Attachments

  • 1.png
    1.png
    268.7 KB · Views: 17
  • 2.png
    2.png
    260.5 KB · Views: 19
  • 3.png
    3.png
    124 KB · Views: 16
  • 4.png
    4.png
    173.5 KB · Views: 14
  • 5.png
    5.png
    160.9 KB · Views: 14
  • 6.png
    6.png
    292.2 KB · Views: 22
  • 7.png
    7.png
    141.9 KB · Views: 18

TESTOSTERONE

Nosey aren't ya?
Regular
Joined
Feb 11, 2017
Messages
681
Reaction score
3,820
First Language
English
Primarily Uses
RMMV
I wonder if because you are not exiting the loop when you "win" (screenshot 7), it just keeps repeating it over and over.

See if this logic works:

Code:
If StrengthPoints >=3
{
break loop
}
...
Repeat Above
Text: WIN
Control Self Switch A = ON.
 

Ryuka

Regular
Regular
Joined
Feb 28, 2021
Messages
61
Reaction score
11
First Language
English
Primarily Uses
N/A
I wonder if because you are not exiting the loop when you "win" (screenshot 7), it just keeps repeating it over and over.

See if this logic works:

Code:
If StrengthPoints >=3
{
break loop
}
...
Repeat Above
Text: WIN
Control Self Switch A = ON.
YES! That was working! I was a little confused cuz the "erase picture" order didnt make the picture disappear but i just realized that the other parralel event always brought it back that was the reason.
Thank you so much man, you saved my life!
 

Ryuka

Regular
Regular
Joined
Feb 28, 2021
Messages
61
Reaction score
11
First Language
English
Primarily Uses
N/A
Oh no, sorry it's still not good. Im not sure if i used well the code you wrote. I tried these 2 methodes.


At the first one it ends the event well but i press ENTER one time and the weight jump to the top immediately and get one StrengthPoint.. So there is something wrong with the Picture point counter.


At the second one after the counting back it writes out immediately "win" and ends the event.
 

Attachments

  • 9.png
    9.png
    135.7 KB · Views: 5
  • 10.png
    10.png
    135.6 KB · Views: 5

TESTOSTERONE

Nosey aren't ya?
Regular
Joined
Feb 11, 2017
Messages
681
Reaction score
3,820
First Language
English
Primarily Uses
RMMV
Maybe instead of a self switch (which I’m not sure how you are turning it off to restart the mini game) you can use a normal switch and turn it off at the start of the mini game? turn off the GymMiniGame switch instead.
 
Last edited:

Ryuka

Regular
Regular
Joined
Feb 28, 2021
Messages
61
Reaction score
11
First Language
English
Primarily Uses
N/A
Maybe instead of a self switch (which I’m not sure how you are turning it off to restart the mini game) you can use a normal switch and turn it off at the start of the mini game? turn off the GymMiniGame switch instead.
I just realized i deleted the Wait 1 frame.. That was the reason :'D
With your method now it works perfectly fine thank you!
 

Attachments

  • 11.png
    11.png
    134.5 KB · Views: 4

Latest Threads

Latest Posts

Latest Profile Posts

Mike Final Breaker.png
that time I drew Mike doing Hugo from Street Fighter 3's Shootdown Backbreaker...
So I was thinking about putting in Weapon Synthesis like the Cooking system I got going but after all these recipes I've been putting in the item log and common events for the past week and a half I'ma say no on that one chief

those shops and chests are working just fine lmao
Just watched Godzilla Minus One.
As a Godzilla fan, I loved it. Acting was a little rough, and I thought the ending was cheap, but overall, great!
Could have used more plot.
Plot. I demand more fanservice!
giphy-downsized.gif
I should do a Photoshop with "Everyone Loves Reimond" and just stick Rei in the middle where Raymond's face would be.
Non-rare second status post but we closed the Third and Final Cameo Battle
Reveal_3&4_F.png

Forum statistics

Threads
136,637
Messages
1,268,272
Members
180,322
Latest member
ArcanaDev
Top