In my code, I have a timer called timer. I started it somewhere in the game by doing timer.tick(). I was wondering if there is any kind of command that can stop the timer from recording time anymore and just stop. Because if I just set it to zero it keeps going, which I have tried. Is there a command like timer.stop(). I have tried many things such as looking online for this, and settings it to zero, etc..
Thank you EDIT_______________________
This is the variables before main loop
clock = pygame.time.Clock() FPS = 60 timer = pygame.time.Clock() storydelay = 5000 time_count = 0 After main loop
if story: timer.tick() time_count += timer.get_time() if time_count < storydelay: mainmenu = False screen.blit(black_image,zero_position) if time_count > storydelay: mainmenu = True Basically what I want to do is when the time_count > storydelay, the timer should stop, so I can recall it back some other time
timer = 0, andtime_count = 0after your last if statement.pygame.time.Clockjust use theclockinstead oftimer(but don't callclock.tick(FPS)twice).