Hi all! I'm attempting to create a common event that tracks intervals of time, and I'm having trouble getting the event set up properly.
This is how I've set up the basis for the common event. I set up a loop that adds 1 to a variable every time a second has passed. After 5 seconds have passed, I've set up a conditional branch to break this loop, in order to create 5 second intervals (I don't actually want it to stay as 5 seconds--I set it as 5 seconds to make it easy to playtest, which is why I've set it up like this instead of just using a wait command).
However, once it reaches 5 seconds, it doesn't break the loop. I set up another event that tells me what number the seconds variable is set to, and it just keeps going and continues to count past 5. I'm not sure what I'm doing wrong here.
This is how I've set up the basis for the common event. I set up a loop that adds 1 to a variable every time a second has passed. After 5 seconds have passed, I've set up a conditional branch to break this loop, in order to create 5 second intervals (I don't actually want it to stay as 5 seconds--I set it as 5 seconds to make it easy to playtest, which is why I've set it up like this instead of just using a wait command).
However, once it reaches 5 seconds, it doesn't break the loop. I set up another event that tells me what number the seconds variable is set to, and it just keeps going and continues to count past 5. I'm not sure what I'm doing wrong here.