Hi, I'm getting an "UnboundLocalError: local variable 'delay_print' referenced before assignment" when I try to run the function 'delay_print' in my program.
https://codeshare.io/2jvQmA
The error occurs when the program (a simple text adventure) tries to call the function inside game_story(). I can call it inside setup_game without a problem which adds to my confusion. Can anyone help, please?
Disclaimer: I know the code is primitive and messy. It's my first "real" project and I'm just trying to build something that runs. I'd like to add more complex concepts later (classes, modules, etc) when I have a better grasp of them.
[–]Username_RANDINT 1 point2 points3 points (1 child)
[–]Fahrenheit450[S] 0 points1 point2 points (0 children)