This commit is contained in:
Lyzzy 2024-03-10 13:04:29 +01:00
commit bb8ec349dd

View file

@ -81,7 +81,7 @@ class NPC(Objects):
self.lastUpdate = pg.time.get_ticks() self.lastUpdate = pg.time.get_ticks()
else: else:
touches = pg.sprite.spritecollideany(self, objects[0]) touches = pg.sprite.spritecollideany(self, objects[0])
if touches is not None and keys[pg.K_f] and isinstance(touches, MainCharacter): if touches is not None and keys[pg.K_SPACE] and isinstance(touches, MainCharacter):
self.talk(objects) self.talk(objects)
self.lastUpdate = pg.time.get_ticks() self.lastUpdate = pg.time.get_ticks()