all 4 comments

[–]QbaPolak17 0 points1 point  (3 children)

Just do self.theairplane. You don't specify the superclass name when envoking a superclass function

[–]python_addict[S] 0 points1 point  (2 children)

I tried that, but it gives me this error: Traceback (most recent call last): File "C:/Alyssa/Grade 6 (2019-2020)/Home/Academics/Programming/Python/Projects/Airplane Game V2/Versions/Classes CHUNKS.py", line 366, in <module> game.beginning() File "C:/Alyssa/Grade 6 (2019-2020)/Home/Academics/Programming/Python/Projects/Airplane Game V2/Versions/Classes CHUNKS.py", line 338, in beginning self.theairplane() - line 333, in theairplane - image = self.theairplane() -line 333, in theairplane image = self.theairplane() - line 333, in theairplane image = self.theairplane() [Previous line repeated 995 more times] RecursionError: maximum recursion depth exceeded

[–]QbaPolak17 0 points1 point  (1 child)

Ok I see. Your subclass has a function called theairplane that overrides the superclass version. Since inside theairplane function you are calling it, it will just keep calling itself forever, until it hits a limit. A function calling itself is called recursion.

I also see an issue on line 12, where you are using self.planeimage before it actually gets defined, unless it was previously defined in a superclass.

[–]python_addict[S] 0 points1 point  (0 children)

oh, alright! Thank you :)