Browse Source

fix move to

Bastien Sevajol 6 years ago
parent
commit
7d3566feef
1 changed files with 1 additions and 3 deletions
  1. 1 3
      synergine2_cocos2d/gui.py

+ 1 - 3
synergine2_cocos2d/gui.py View File

@@ -773,10 +773,8 @@ class TMXGui(Gui):
773 773
         actor = self.layer_manager.subject_layer.subjects_index[event.subject_id]
774 774
 
775 775
         new_world_position = self.layer_manager.grid_manager.get_pixel_position_of_grid_position(event.to_position)
776
-        new_window_position = self.layer_manager.scrolling_manager.world_to_screen(*new_world_position)
777 776
 
778
-        move_action = MoveTo(new_window_position, 0.5)
777
+        move_action = MoveTo(new_world_position, 0.5)
779 778
         actor.do(move_action)
780
-        # TODO: values
781 779
         actor.do(Animate(ANIMATION_WALK, 0.5, 1))
782 780
         actor.rotation = get_angle(event.from_position, event.to_position)