소스 검색

fix move to

Bastien Sevajol 9 년 전
부모
커밋
7d3566feef
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      synergine2_cocos2d/gui.py

+ 1 - 3
synergine2_cocos2d/gui.py 파일 보기

773
         actor = self.layer_manager.subject_layer.subjects_index[event.subject_id]
773
         actor = self.layer_manager.subject_layer.subjects_index[event.subject_id]
774
 
774
 
775
         new_world_position = self.layer_manager.grid_manager.get_pixel_position_of_grid_position(event.to_position)
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
         actor.do(move_action)
778
         actor.do(move_action)
780
-        # TODO: values
781
         actor.do(Animate(ANIMATION_WALK, 0.5, 1))
779
         actor.do(Animate(ANIMATION_WALK, 0.5, 1))
782
         actor.rotation = get_angle(event.from_position, event.to_position)
780
         actor.rotation = get_angle(event.from_position, event.to_position)