Apr-05-2019, 11:05 AM
Hi peeps, just firstly like to thank Christian for this excellent tutorial. I wonder if anyone will be able to help me with my little 'door' issue
for door in doors:
if player.is_collision(door):
walls.clear()
pen.clear()
for enemy in enemies:
Enemy.destroy(enemy)
for Coin in coins:
Coin.destroy()
setup_maze(levels[2])
This code is within the 'while loop' .. Even though it will clear all coins and enemy on the screen when it generates the level 2 there are two issues
1) 'Coin' object is not callable, = If i don't put any coins in the second level this isn't an issue
2) My enemies are static hence do not move
If anyone got any advice or tips that would be great !!
for door in doors:
if player.is_collision(door):
walls.clear()
pen.clear()
for enemy in enemies:
Enemy.destroy(enemy)
for Coin in coins:
Coin.destroy()
setup_maze(levels[2])
This code is within the 'while loop' .. Even though it will clear all coins and enemy on the screen when it generates the level 2 there are two issues
1) 'Coin' object is not callable, = If i don't put any coins in the second level this isn't an issue
2) My enemies are static hence do not move
If anyone got any advice or tips that would be great !!