When I click the button to test the changing of the screens, the fade out works. So the code is finding the disappear. But then it immediately fails saying that it cannot find a function called appear in base “string”. It looks like all our code is the same. Any help available? I have ensured that the script base_screen is attached to the pause, game over, and the title screen.
I figured it out. But I’ll leave this here in case someone else runs into the problem. I was putting the new screen names in double quotes, in the function _on_button_pressed. so I had change_screen(“pause_screen”) instead of change_screen(pause_screen).
This was passing the text instead of the variable, so it was looking for a function inside a text string instead of looking for the function inside the actual screen that we set at the top.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.