[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Collisions + tiledtmxloader?



Hello,

I'm part of team working on a small project using DR0ID's excellent
tiledtmxloader.
The tiledtmxloader is completly awesome and is the godsend we prayed
for, unfortunately due to our (current) incompetence we cannot
currently utilize this holy grail fully.

But enough of being a suckup; we're having some slight problems with
character-world co-ordination, especially the part about collisions.

Currently we have a way of moving the background (the tiles on a
surface) around and we got the character on top of that, moved by the
same logic (although independently).

Does anyone know how we can make the character tell if it's stepping
on a tile or not?

svn co http://tdist.svn.sourceforge.net/svnroot/tdist/ for the code

tiledtmxloader.py has the loader, rest is in game.py

---
//Alex