I've checked and re checked the code to make sure its as given but every time i execute it i get the following error:
TypeError: 'RenderUpdates' object does not support indexing.
Im guessing its happening because the tutorial is rather old and pygame and python have been updated since it was written, to save showing you all code ive just shown the bit where the error comes from.
The error is in lines 5 and 6.
# Turn each layout row into a sprite group for y in xrange(len(layout)): group = pygame.sprite.RenderUpdates() for x in xrange(len(layout[y])): if layout[y][x]: group.add(layout[y][x]) group.y = 0 layout[y] = group
If you need more of the code or more of an explanation, let me know i'll be more than happy to post it.
Any one got any ideas???