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

Re: [pygame] My solid tile detection doesn't work



Adeola Bannis wrote:
In my little RPG engine-like thing that no one tested, *wink wink*, I
tried implementing solid tiles. My algorithm doesn't work, and I don't
know why.

I didn't want to put all that in... what I basically wanted to point
out was that I was getting the  tile number the exact same way I did
when I was drawing the map. Yet I usually get a completely different
tile to the one the player is walking into. Can anybody help me out
here?

Adeola


As a quick guess, how is "speed" defined? Looks like you're using it as a single number, which could be wrong if the character can move diagonally.


Is this the code inspired by "Adventure Construction Set?" I remember trying to run that and getting an error. Could we see it again please?