Skip to content

Commit 6f47fb9

Browse files
committed
gotoaction: target to center
editactordialog: actor scale not mandatory
1 parent 258fdf8 commit 6f47fb9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

adventure-composer/src/main/java/com/bladecoder/engineeditor/ui/EditActorDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public EditActorDialog(Skin skin, BaseDocument doc, Element parent,
8787
null);
8888

8989
inputs[12] = new InputPanel(skin, "Scale",
90-
"The sprite scale", Param.Type.FLOAT, true, "1",
90+
"The sprite scale", Param.Type.FLOAT, false, "1",
9191
null);
9292

9393
setInfo(TYPES_INFO[0]);

blade-engine/src/com/bladecoder/engine/actions/GotoAction.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public boolean run(ActionCallback cb) {
5353
if(targetId!=null) {
5454
BaseActor target = World.getInstance().getCurrentScene().getActor(targetId, false);
5555
if(target != null) {
56-
Rectangle bbox = target.getBBox().getBoundingRectangle();
57-
actor.goTo(new Vector2(bbox.x, bbox.y), getWait()?this:null);
56+
actor.goTo(new Vector2(target.getX(), target.getY()), getWait()?this:null);
5857
} else {
5958
EngineLogger.error("GotoAction - Target actor doesn't exists: " + targetId);
6059
}

0 commit comments

Comments
 (0)