Skip to content

Commit 03b9d3c

Browse files
committed
Fix the coin counter
1 parent 886ca75 commit 03b9d3c

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,7 @@
31023102
"RemainingText",
31033103
"Text",
31043104
"=",
3105-
"\"Remaining: \" + ToString(SceneInstancesCount(Coin))"
3105+
"\"Remaining: \" + ToString(SceneInstancesCount(Coin) - 20)"
31063106
]
31073107
},
31083108
{
@@ -15382,7 +15382,6 @@
1538215382
"fullName": "Rotate the camera all the way",
1538315383
"functionType": "Action",
1538415384
"name": "JumpToTargetedRotation",
15385-
"private": true,
1538615385
"sentence": "Rotate the camera all the way to the targeted angle of _PARAM0_",
1538715386
"events": [
1538815387
{
@@ -15412,6 +15411,33 @@
1541215411
}
1541315412
]
1541415413
},
15414+
{
15415+
"type": "BuiltinCommonInstructions::Standard",
15416+
"conditions": [
15417+
{
15418+
"type": {
15419+
"value": "BooleanVariable"
15420+
},
15421+
"parameters": [
15422+
"IsElevatingWithObject",
15423+
"True",
15424+
""
15425+
]
15426+
}
15427+
],
15428+
"actions": [
15429+
{
15430+
"type": {
15431+
"value": "SetNumberVariable"
15432+
},
15433+
"parameters": [
15434+
"TargetedElevationAngle",
15435+
"=",
15436+
"Object.Object3D::RotationY()"
15437+
]
15438+
}
15439+
]
15440+
},
1541515441
{
1541615442
"type": "BuiltinCommonInstructions::Standard",
1541715443
"conditions": [],

0 commit comments

Comments
 (0)