Skip to content

Commit

Permalink
Avoid to use a timer
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian committed Nov 5, 2024
1 parent 00e62bd commit bf55f19
Showing 1 changed file with 38 additions and 68 deletions.
106 changes: 38 additions & 68 deletions examples/3d-car-coin-hunt/3d-car-coin-hunt.json
Original file line number Diff line number Diff line change
Expand Up @@ -4776,20 +4776,25 @@
"conditions": [
{
"type": {
"value": "CompareObjectTimer"
"inverted": true,
"value": "Tween::Exists"
},
"parameters": [
"Object",
"\"Animate\"",
">=",
"0"
"Icon",
"Tween",
"\"Rotate\""
]
},
{
"type": {
"value": "BuiltinCommonInstructions::Once"
"inverted": true,
"value": "Tween::Exists"
},
"parameters": []
"parameters": [
"Icon",
"Tween",
"\"RotateBack\""
]
}
],
"actions": [
Expand All @@ -4814,20 +4819,13 @@
"conditions": [
{
"type": {
"value": "CompareObjectTimer"
"value": "Tween::HasFinished"
},
"parameters": [
"Object",
"\"Animate\"",
">=",
"2"
"Icon",
"Tween",
"\"RotateBack\""
]
},
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
Expand All @@ -4839,11 +4837,21 @@
"Icon",
"Tween",
"\"Rotate\"",
"-8",
"8",
"\"easeInOutQuad\"",
"2",
""
]
},
{
"type": {
"value": "Tween::RemoveTween"
},
"parameters": [
"Icon",
"Tween",
"\"RotateBack\""
]
}
]
},
Expand All @@ -4852,76 +4860,38 @@
"conditions": [
{
"type": {
"value": "CompareObjectTimer"
"value": "Tween::HasFinished"
},
"parameters": [
"Object",
"\"Animate\"",
">=",
"4"
"Icon",
"Tween",
"\"Rotate\""
]
},
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
{
"type": {
"value": "ResetObjectTimer"
},
"parameters": [
"Object",
"\"Animate\""
]
},
{
"type": {
"value": "Tween::TweenBehavior::AddObjectAngleTween2"
},
"parameters": [
"Icon",
"Tween",
"\"Rotate\"",
"8",
"\"RotateBack\"",
"-8",
"\"easeInOutQuad\"",
"2",
""
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "ScreenOrientationChecker::ScreenOrientationChecker",
"type": "object"
}
],
"objectGroups": []
},
{
"fullName": "",
"functionType": "Action",
"name": "onCreated",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
},
{
"type": {
"value": "ResetObjectTimer"
"value": "Tween::RemoveTween"
},
"parameters": [
"Object",
"\"Animate\""
"Icon",
"Tween",
"\"Rotate\""
]
}
]
Expand Down

0 comments on commit bf55f19

Please sign in to comment.