1 decade ago by Ant101
Hi,
I'm detecting y collisions with tiles (to check what the player is standing on) using:
handleMovementTrace: function( res ) {
if( res.tile.y == SOMETILEDEF ) {
This seems to work ok, appart from when the player is walking (e.g. walking across it) - in this case the if statement is never true. I'm a little confused, can anyone explain why this is?
Thanks
I'm detecting y collisions with tiles (to check what the player is standing on) using:
handleMovementTrace: function( res ) {
if( res.tile.y == SOMETILEDEF ) {
This seems to work ok, appart from when the player is walking (e.g. walking across it) - in this case the if statement is never true. I'm a little confused, can anyone explain why this is?
Thanks