Trying to make a minigame.

MakeAndCreate

Veteran
Veteran
Joined
Jul 3, 2014
Messages
40
Reaction score
3
First Language
English
Primarily Uses
Trying to make a treadmill minigame, where a time is set for 10 seconds, and for every time the player pushes a button down during those 10 seconds, they get a point. When the timer is up, the points are tallied, and the event ends. But for some reason, the timer won't stay. It just goes to the conditional branch to when the timer is supposed to be 10 seconds or more. I checked that I set the condition right, but it doesn't seem to be working either way. Any help on this?
 

SomeFire

Veteran
Veteran
Joined
May 27, 2016
Messages
92
Reaction score
109
First Language
Russian
Primarily Uses
Code? Sample map? Do you turn off your event with timer?
 

IFCATS

Villager
Member
Joined
Feb 3, 2020
Messages
23
Reaction score
6
First Language
Italian
Primarily Uses
RMMV
Yeah code must be wrong.
I think it could be due to you using a conditional branch (like an else statement) during the timer that is not necessary. You could try wrapping it in a loop

Control timer start 10 seconds

Loop // start of loop

if "Z is pressed" //here you put whatever you are using to check the player's input
score = score +=1 //add 1 to score variable every time z is pressed

if timer = 0
Control self switch : A // exits the loop if time is up


Wait 1 Frame
Repeat above // end of loop


then under self switch A you put something like

text: your score is [score]

It should work, I have something similar in my game
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top