When I run this code, it throws the error:
File "tilemapping.py", line 59
for count in range(0,8):
^
SyntaxError: invalid syntax
It's pointing to my for loop, however I suspect that this is actually linked to the if statement I called before it. Here's the pair:
if tiles[tilemap[((y / 40) - 1)][(x / 40)] == 1:
for count in range(0,8):
y -= 5
spriteDraw()
I'm not sure where the error is in this. I tried to put the if statement in parenthesis and that didn't do anything. Just the same error. Did I miss something in the if statement that I'm just not seeing? Or is it a problem with tiles[tilemap[((y / 40) - 1)][(x / 40)]]?
Aucun commentaire:
Enregistrer un commentaire