vulcanicity
vulcanicity

Reputation: 13

'bool' object is not callable

Traceback (most recent call last):
File "C:\Python\ZombieGameImages\ZombielandI_NLoo.py", line 27, in <module>
gm.over(True)
TypeError: 'bool' object is not callable

if gm.time<1: #function that causes error
   gm.over(True)

The error above appears when I attempt to use if gm.time<1 in my program. I'm learning Python in school, so I'm still new to Python. Help?

Upvotes: 1

Views: 5644

Answers (1)

Aleksandar
Aleksandar

Reputation: 3661

gm.over is bool type and you call it like method... set it like this:

gm.over = True

Upvotes: 1

Related Questions