OSDN Git Service

[fixed] Fixed a problem where the target position of the Actor was reset to the start...
authormoritzpost@gmail.com <moritzpost@gmail.com@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Tue, 8 Feb 2011 17:24:03 +0000 (17:24 +0000)
committermoritzpost@gmail.com <moritzpost@gmail.com@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Tue, 8 Feb 2011 17:24:03 +0000 (17:24 +0000)
gdx/src/com/badlogic/gdx/scenes/scene2d/actions/MoveBy.java

index 0f2d937..1c2dcf9 100644 (file)
@@ -50,6 +50,8 @@ public class MoveBy extends AnimationAction {
                this.startY = target.y;\r
                this.deltaX = x;\r
                this.deltaY = y;\r
+               this.x = target.x + x;\r
+               this.y = target.y + y;\r
                this.taken = 0;\r
                this.done = false;\r
        }\r