[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] My solid tile detection doesn't work
- To: pygame-users@xxxxxxxx
- Subject: [pygame] My solid tile detection doesn't work
- From: Kris Schnee <kschnee@xxxxxxxxxx>
- Date: Sat, 22 Jul 2006 15:44:24 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 22 Jul 2006 15:44:33 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
I assume that the problem you have is that the player draws over
different tiles than the attached code is saying the player is moving
over?
Another thought: could you be reversing the X and Y axes, selecting tile
(4,2) when you want (2,4)? Add some print statements and get a few data
points for what tile you clicked and what actually got selected.
Kris