player.bind('Move', function(from) {


                                    if(this.hit('Tree')){

                                        player.x = from._x
                                        player.y = from._y
             // Here player.x and player.y have right value but not renderered here.

                                    }
                }
                )

I debugged that program enters here and from._x and from._y have good values. But player remains "behind" the Tree.

0 Answers