From c58a94cf87f35125aac0ff670adc6714c6b378f8 Mon Sep 17 00:00:00 2001 From: D8H Date: Sun, 8 Oct 2023 13:04:46 +0200 Subject: [PATCH] [Community] [Movement animator] Fix the animation changes with GDevelop 5.2.172+ (#1043) --- extensions/community/NavMeshPathfinding.json | 7 +++---- extensions/community/TopDownMovementAnimator.json | 11 +++++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/extensions/community/NavMeshPathfinding.json b/extensions/community/NavMeshPathfinding.json index 1e7356db..69b4c841 100644 --- a/extensions/community/NavMeshPathfinding.json +++ b/extensions/community/NavMeshPathfinding.json @@ -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", @@ -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" ] @@ -7243,7 +7242,7 @@ }, "parameters": [ "Object", - "Object. Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())" + "Object.Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())" ] } ] diff --git a/extensions/community/TopDownMovementAnimator.json b/extensions/community/TopDownMovementAnimator.json index 870921f3..57292c9b 100644 --- a/extensions/community/TopDownMovementAnimator.json +++ b/extensions/community/TopDownMovementAnimator.json @@ -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", @@ -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" ] @@ -406,7 +409,7 @@ }, "parameters": [ "Object", - "Object. Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())" + "Object.Behavior::PropertyAnimationName() + ToString(Object.Behavior::PropertyAnimationDirection())" ] } ]