Skip to content

Commit

Permalink
[Reviewed] [Sticker] Fix object positions after a size change when an…
Browse files Browse the repository at this point in the history
…gle is 0 (#1232)
  • Loading branch information
D8H committed Mar 22, 2024
1 parent a59ae87 commit 0732b0c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions extensions/reviewed/Sticker.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Sticker",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/sticker-outline.svg",
"shortDescription": "Make objects follow the position and rotation of the object they are stuck to.",
"version": "0.5.0",
"version": "0.5.1",
"description": [
"This extension can be useful to:",
"* Stick accessories to moving objects",
Expand Down Expand Up @@ -240,9 +240,9 @@
" basisObject.getY() + this.relativeY);",
" }",
" } else {",
" object.setPosition(",
" basisObject.getX() + this.relativeRotatedX * basisObject.getWidth(),",
" basisObject.getY() + this.relativeRotatedY * basisObject.getHeight());",
" object.setCenterPositionInScene(",
" basisObject.getCenterXInScene() + this.relativeRotatedX * basisObject.getWidth(),",
" basisObject.getCenterYInScene() + this.relativeRotatedY * basisObject.getHeight());",
" }",
" } else {",
" object.setAngle(basisObject.getAngle() + this.relativeAngle);",
Expand Down Expand Up @@ -597,7 +597,6 @@
"description": "",
"group": "",
"extraInformation": [],
"hidden": false,
"name": "OnlyFollowPosition"
},
{
Expand All @@ -607,7 +606,6 @@
"description": "",
"group": "",
"extraInformation": [],
"hidden": false,
"name": "IsDestroyedWithParent"
}
],
Expand Down

0 comments on commit 0732b0c

Please sign in to comment.