Skip to content

Commit 60c93ed

Browse files
committed
A draft of bonus animation.
1 parent 5347cdb commit 60c93ed

File tree

1 file changed

+145
-15
lines changed

1 file changed

+145
-15
lines changed

examples/3d-bomberman/3d-bomberman.json

Lines changed: 145 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,12 +2019,18 @@
20192019
"effects": [],
20202020
"behaviors": [
20212021
{
2022-
"name": "Billboard",
2023-
"type": "Billboard::Billboard",
2024-
"ShouldRotateX": true,
2025-
"ShouldRotateY": true,
2026-
"ShouldRotateZ": true,
2027-
"OffsetPositionMode": "No change"
2022+
"name": "BonusAnimator",
2023+
"type": "Bonus::BonusAnimator",
2024+
"Tween3D": "Tween3D",
2025+
"Tween": "Tween"
2026+
},
2027+
{
2028+
"name": "Tween",
2029+
"type": "Tween::TweenBehavior"
2030+
},
2031+
{
2032+
"name": "Tween3D",
2033+
"type": "Tween3D::Tween3D"
20282034
}
20292035
],
20302036
"content": {
@@ -4216,14 +4222,14 @@
42164222
"name": "Animation",
42174223
"type": "AnimatableCapability::AnimatableBehavior"
42184224
},
4219-
{
4220-
"name": "Billboard",
4221-
"type": "Billboard::Billboard"
4222-
},
42234225
{
42244226
"name": "BombAnimator",
42254227
"type": "Bomb::BombAnimator"
42264228
},
4229+
{
4230+
"name": "BonusAnimator",
4231+
"type": "Bonus::BonusAnimator"
4232+
},
42274233
{
42284234
"name": "Effect",
42294235
"type": "EffectCapability::EffectBehavior"
@@ -6693,7 +6699,7 @@
66936699
"parameters": [
66946700
"RandomInRange(1, 4)",
66956701
"<=",
6696-
"1"
6702+
"4"
66976703
]
66986704
}
66996705
],
@@ -10835,6 +10841,10 @@
1083510841
"shortDescription": "Smoothly animate scale and rotation of 3d models.",
1083610842
"version": "0.0.2",
1083710843
"description": "Change models proportions and orientation over time to make smooth animations.",
10844+
"origin": {
10845+
"identifier": "Tween3D",
10846+
"name": "gdevelop-extension-store"
10847+
},
1083810848
"tags": [
1083910849
"3d",
1084010850
"tween",
@@ -11481,7 +11491,7 @@
1148111491
"description": "Tweens an object rotation X from its current value to a new one.",
1148211492
"fullName": "Tween rotation X",
1148311493
"functionType": "Action",
11484-
"group": "Size",
11494+
"group": "Angle",
1148511495
"name": "TweenRotationX",
1148611496
"sentence": "Tween the rotation X of object _PARAM0_ to _PARAM3_ over _PARAM4_ seconds with _PARAM5_ easing as _PARAM2_",
1148711497
"events": [
@@ -11549,7 +11559,7 @@
1154911559
"description": "Tweens an object rotation Y from its current value to a new one.",
1155011560
"fullName": "Tween rotation Y",
1155111561
"functionType": "Action",
11552-
"group": "Size",
11562+
"group": "Angle",
1155311563
"name": "TweenRotationY",
1155411564
"sentence": "Tween the rotation Y of object _PARAM0_ to _PARAM3_ over _PARAM4_ seconds with _PARAM5_ easing as _PARAM2_",
1155511565
"events": [
@@ -33430,18 +33440,138 @@
3343033440
"description": "",
3343133441
"fullName": "",
3343233442
"name": "BonusAnimator",
33433-
"objectType": "",
33443+
"objectType": "Scene3D::Cube3DObject",
3343433444
"eventsFunctions": [
3343533445
{
3343633446
"fullName": "",
3343733447
"functionType": "Action",
3343833448
"name": "onCreated",
3343933449
"sentence": "",
33440-
"events": [],
33450+
"events": [
33451+
{
33452+
"type": "BuiltinCommonInstructions::Standard",
33453+
"conditions": [],
33454+
"actions": [
33455+
{
33456+
"type": {
33457+
"value": "Tween::AddObjectPositionZTween"
33458+
},
33459+
"parameters": [
33460+
"Object",
33461+
"Tween",
33462+
"\"Jump\"",
33463+
"120",
33464+
"\"easeOutQuad\"",
33465+
"500",
33466+
""
33467+
]
33468+
},
33469+
{
33470+
"type": {
33471+
"value": "Wait"
33472+
},
33473+
"parameters": [
33474+
"0.5"
33475+
]
33476+
},
33477+
{
33478+
"type": {
33479+
"value": "Tween::AddObjectPositionZTween"
33480+
},
33481+
"parameters": [
33482+
"Object",
33483+
"Tween",
33484+
"\"Jump\"",
33485+
"20",
33486+
"\"easeOutBounce\"",
33487+
"1000",
33488+
""
33489+
]
33490+
}
33491+
]
33492+
},
33493+
{
33494+
"type": "BuiltinCommonInstructions::Standard",
33495+
"conditions": [],
33496+
"actions": [
33497+
{
33498+
"type": {
33499+
"value": "SetAngle"
33500+
},
33501+
"parameters": [
33502+
"Object",
33503+
"=",
33504+
"-180"
33505+
]
33506+
},
33507+
{
33508+
"type": {
33509+
"value": "Tween::AddObjectAngleTween"
33510+
},
33511+
"parameters": [
33512+
"Object",
33513+
"Tween",
33514+
"\"Turn\"",
33515+
"0",
33516+
"\"linear\"",
33517+
"1000",
33518+
""
33519+
]
33520+
}
33521+
]
33522+
},
33523+
{
33524+
"type": "BuiltinCommonInstructions::Standard",
33525+
"conditions": [],
33526+
"actions": [
33527+
{
33528+
"type": {
33529+
"value": "Scene3D::Base3DBehavior::SetRotationX"
33530+
},
33531+
"parameters": [
33532+
"Object",
33533+
"Object3D",
33534+
"=",
33535+
"-20"
33536+
]
33537+
}
33538+
]
33539+
},
33540+
{
33541+
"disabled": true,
33542+
"type": "BuiltinCommonInstructions::Standard",
33543+
"conditions": [],
33544+
"actions": [
33545+
{
33546+
"type": {
33547+
"value": "Wait"
33548+
},
33549+
"parameters": [
33550+
"1000"
33551+
]
33552+
},
33553+
{
33554+
"type": {
33555+
"value": "Tween3D::Tween3D::TweenRotationX"
33556+
},
33557+
"parameters": [
33558+
"Object",
33559+
"Tween3D",
33560+
"\"Billboard\"",
33561+
"20",
33562+
"1000",
33563+
"\"linear\"",
33564+
""
33565+
]
33566+
}
33567+
]
33568+
}
33569+
],
3344133570
"parameters": [
3344233571
{
3344333572
"description": "Object",
3344433573
"name": "Object",
33574+
"supplementaryInformation": "Scene3D::Cube3DObject",
3344533575
"type": "object"
3344633576
},
3344733577
{

0 commit comments

Comments
 (0)