Skip to content

Commit

Permalink
[Community] [Movement animator] Fix the animation changes with GDevel…
Browse files Browse the repository at this point in the history
…op 5.2.172+ (#1043)
  • Loading branch information
D8H authored Oct 8, 2023
1 parent fcbdfcb commit c58a94c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 3 additions & 4 deletions extensions/community/NavMeshPathfinding.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "NavMeshPathfinding",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Maps and Navigation/Maps and Navigation_map_find_search.svg",
"shortDescription": "Pathfinding allows to compute an efficient path for objects, avoiding obstacles on the way.",
"version": "0.2.0",
"version": "0.2.1",
"description": [
"In comparison to the built-in pathfinding behavior, this one aims to:",
"- better respect obstacle shapes",
Expand Down Expand Up @@ -7121,11 +7121,10 @@
"conditions": [
{
"type": {
"inverted": true,
"value": "BuiltinCommonInstructions::CompareNumbers"
},
"parameters": [
"abs(Object.Behavior:: DirectionDifference(Object.Behavior::SharedPropertyNewAnimationDirection(), Object.Behavior::PropertyAnimationDirection()))",
"abs(Object.Behavior::DirectionDifference(Object.Behavior::SharedPropertyNewAnimationDirection(), Object.Behavior::PropertyAnimationDirection()))",
">",
"0.5 + 0.03125"
]
Expand Down Expand Up @@ -7243,7 +7242,7 @@
},
"parameters": [
"Object",
"Object. Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())"
"Object.Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())"
]
}
]
Expand Down
11 changes: 7 additions & 4 deletions extensions/community/TopDownMovementAnimator.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
"name": "TopDownMovementAnimator",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Glyphster Pack/Master/SVG/Arrows/a6026156355ae5f03613b03971e4ddb50d0c95b8901e7a21edc57f33f0032e42_Arrows_thin_arrows_all_directions_cross.svg",
"shortDescription": "Change the animation according to the movement direction.",
"version": "0.1.0",
"version": "0.1.1",
"description": "Change the animation according to the movement direction.",
"origin": {
"identifier": "TopDownMovementAnimator",
"name": "gdevelop-extension-store"
},
"tags": [
"top-down",
"animation",
Expand Down Expand Up @@ -284,11 +288,10 @@
"conditions": [
{
"type": {
"inverted": true,
"value": "BuiltinCommonInstructions::CompareNumbers"
},
"parameters": [
"abs(Object.Behavior:: DirectionDifference(Object.Behavior::SharedPropertyNewAnimationDirection(), Object.Behavior::PropertyAnimationDirection()))",
"abs(Object.Behavior::DirectionDifference(Object.Behavior::SharedPropertyNewAnimationDirection(), Object.Behavior::PropertyAnimationDirection()))",
">",
"0.5 + 0.03125"
]
Expand Down Expand Up @@ -406,7 +409,7 @@
},
"parameters": [
"Object",
"Object. Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())"
"Object.Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())"
]
}
]
Expand Down

0 comments on commit c58a94c

Please sign in to comment.