Skip to content

Commit 0f1fc21

Browse files
committed
Update the animation at creation
1 parent 764a324 commit 0f1fc21

File tree

1 file changed

+60
-57
lines changed

1 file changed

+60
-57
lines changed

extensions/community/TopDownMovementAnimator.json

Lines changed: 60 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,22 @@
110110
]
111111
}
112112
]
113+
},
114+
{
115+
"type": "BuiltinCommonInstructions::Standard",
116+
"conditions": [],
117+
"actions": [
118+
{
119+
"type": {
120+
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimation"
121+
},
122+
"parameters": [
123+
"Object",
124+
"Behavior",
125+
""
126+
]
127+
}
128+
]
113129
}
114130
],
115131
"parameters": [
@@ -211,86 +227,73 @@
211227
"private": true,
212228
"sentence": "Update the animation of _PARAM0_",
213229
"events": [
230+
{
231+
"type": "BuiltinCommonInstructions::Standard",
232+
"conditions": [],
233+
"actions": [
234+
{
235+
"type": {
236+
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimationDirection"
237+
},
238+
"parameters": [
239+
"Object",
240+
"Behavior",
241+
"NewAnimationDirection",
242+
""
243+
]
244+
}
245+
]
246+
},
214247
{
215248
"type": "BuiltinCommonInstructions::Standard",
216249
"conditions": [
217250
{
218251
"type": {
219-
"value": "StringVariable"
252+
"value": "BooleanVariable"
220253
},
221254
"parameters": [
222-
"AnimationName",
223-
"!=",
224-
"\"\""
255+
"IsScalingAnimation",
256+
"True",
257+
""
225258
]
226259
}
227260
],
228261
"actions": [
229262
{
230263
"type": {
231-
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimationDirection"
264+
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimationSpeedScale"
232265
},
233266
"parameters": [
234267
"Object",
235268
"Behavior",
236-
"NewAnimationDirection",
237269
""
238270
]
239271
}
240-
],
241-
"events": [
272+
]
273+
},
274+
{
275+
"type": "BuiltinCommonInstructions::Standard",
276+
"conditions": [
242277
{
243-
"type": "BuiltinCommonInstructions::Standard",
244-
"conditions": [
245-
{
246-
"type": {
247-
"value": "BooleanVariable"
248-
},
249-
"parameters": [
250-
"IsPausingAnimation",
251-
"True",
252-
""
253-
]
254-
}
255-
],
256-
"actions": [
257-
{
258-
"type": {
259-
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimationPause"
260-
},
261-
"parameters": [
262-
"Object",
263-
"Behavior",
264-
""
265-
]
266-
}
278+
"type": {
279+
"value": "BooleanVariable"
280+
},
281+
"parameters": [
282+
"IsPausingAnimation",
283+
"True",
284+
""
267285
]
268-
},
286+
}
287+
],
288+
"actions": [
269289
{
270-
"type": "BuiltinCommonInstructions::Standard",
271-
"conditions": [
272-
{
273-
"type": {
274-
"value": "BooleanVariable"
275-
},
276-
"parameters": [
277-
"IsScalingAnimation",
278-
"True",
279-
""
280-
]
281-
}
282-
],
283-
"actions": [
284-
{
285-
"type": {
286-
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimationSpeedScale"
287-
},
288-
"parameters": [
289-
"Object",
290-
"Behavior",
291-
""
292-
]
293-
}
290+
"type": {
291+
"value": "TopDownMovementAnimator::TopDownMovementAnimator::UpdateAnimationPause"
292+
},
293+
"parameters": [
294+
"Object",
295+
"Behavior",
296+
""
294297
]
295298
}
296299
]

0 commit comments

Comments
 (0)