Skip to content

Commit f5209e3

Browse files
authored
Update custom objects in all examples (#911)
- Don't show in changelog
1 parent 8981418 commit f5209e3

File tree

45 files changed

+84360
-42023
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+84360
-42023
lines changed

examples/geometry-monster/geometry-monster.json

Lines changed: 551 additions & 464 deletions
Large diffs are not rendered by default.

examples/multiplayer-bounce-puzzle/multiplayer-bounce-puzzle.json

Lines changed: 555 additions & 468 deletions
Large diffs are not rendered by default.

examples/multiplayer-jump-game/multiplayer-jump-game.json

Lines changed: 553 additions & 466 deletions
Large diffs are not rendered by default.

examples/multiplayer-platformer-pickup/multiplayer-platformer-pickup.json

Lines changed: 1400 additions & 856 deletions
Large diffs are not rendered by default.

examples/pairs/pairs.json

Lines changed: 556 additions & 469 deletions
Large diffs are not rendered by default.

examples/plinko/plinko.json

Lines changed: 540 additions & 453 deletions
Large diffs are not rendered by default.

examples/save-load-simple/save-load-simple.json

Lines changed: 198 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,7 +2333,7 @@
23332333
"name": "SpriteMultitouchJoystick",
23342334
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_controller_joystick_arrows_direction.svg",
23352335
"shortDescription": "Joysticks or buttons for touchscreens.",
2336-
"version": "1.8.4",
2336+
"version": "1.9.0",
23372337
"description": [
23382338
"Multitouch joysticks are objects showing a joystick on the screen, useful for mobile. They work like a physical gamepad:",
23392339
"- 4 or 8 directions",
@@ -2843,11 +2843,11 @@
28432843
"objectGroups": []
28442844
},
28452845
{
2846-
"description": "Check if a button is pressed on a gamepad.",
2847-
"fullName": "Multitouch controller button pressed",
2846+
"description": "Check if a button was just pressed on a multitouch controller.",
2847+
"fullName": "Multitouch controller button just pressed",
28482848
"functionType": "Condition",
2849-
"name": "IsButtonPressed",
2850-
"sentence": "Button _PARAM2_ of multitouch controller _PARAM1_ is pressed",
2849+
"name": "IsButtonJustPressed",
2850+
"sentence": "Button _PARAM2_ of multitouch controller _PARAM1_ was just pressed",
28512851
"events": [
28522852
{
28532853
"type": "BuiltinCommonInstructions::Standard",
@@ -2859,7 +2859,7 @@
28592859
"parameters": [
28602860
"Controllers[ControllerIdentifier].Buttons[Button].State",
28612861
"=",
2862-
"\"Pressed\""
2862+
"\"JustPressed\""
28632863
]
28642864
}
28652865
],
@@ -2891,7 +2891,73 @@
28912891
"objectGroups": []
28922892
},
28932893
{
2894-
"description": "Check if a button is released on a gamepad.",
2894+
"description": "Check if a button is pressed on a multitouch controller.",
2895+
"fullName": "Multitouch controller button pressed",
2896+
"functionType": "Condition",
2897+
"name": "IsButtonPressed",
2898+
"sentence": "Button _PARAM2_ of multitouch controller _PARAM1_ is pressed",
2899+
"events": [
2900+
{
2901+
"type": "BuiltinCommonInstructions::Standard",
2902+
"conditions": [
2903+
{
2904+
"type": {
2905+
"value": "BuiltinCommonInstructions::Or"
2906+
},
2907+
"parameters": [],
2908+
"subInstructions": [
2909+
{
2910+
"type": {
2911+
"value": "StringVariable"
2912+
},
2913+
"parameters": [
2914+
"Controllers[ControllerIdentifier].Buttons[Button].State",
2915+
"=",
2916+
"\"Pressed\""
2917+
]
2918+
},
2919+
{
2920+
"type": {
2921+
"value": "StringVariable"
2922+
},
2923+
"parameters": [
2924+
"Controllers[ControllerIdentifier].Buttons[Button].State",
2925+
"=",
2926+
"\"JustPressed\""
2927+
]
2928+
}
2929+
]
2930+
}
2931+
],
2932+
"actions": [
2933+
{
2934+
"type": {
2935+
"value": "SetReturnBoolean"
2936+
},
2937+
"parameters": [
2938+
"True"
2939+
]
2940+
}
2941+
]
2942+
}
2943+
],
2944+
"parameters": [
2945+
{
2946+
"description": "Multitouch controller identifier (1, 2, 3, 4...)",
2947+
"name": "ControllerIdentifier",
2948+
"type": "expression"
2949+
},
2950+
{
2951+
"description": "Button name",
2952+
"name": "Button",
2953+
"supplementaryInformation": "[\"A\",\"CROSS\",\"B\",\"CIRCLE\",\"X\",\"SQUARE\",\"Y\",\"TRIANGLE\",\"LB\",\"L1\",\"RB\",\"R1\",\"LT\",\"L2\",\"RT\",\"R2\",\"UP\",\"DOWN\",\"LEFT\",\"RIGHT\",\"BACK\",\"SHARE\",\"START\",\"OPTIONS\",\"CLICK_STICK_LEFT\",\"CLICK_STICK_RIGHT\",\"PS_BUTTON\",\"CLICK_TOUCHPAD\"]",
2954+
"type": "string"
2955+
}
2956+
],
2957+
"objectGroups": []
2958+
},
2959+
{
2960+
"description": "Check if a button is released on a multitouch controller.",
28952961
"fullName": "Multitouch controller button released",
28962962
"functionType": "Condition",
28972963
"name": "IsButtonReleased",
@@ -2977,7 +3043,7 @@
29773043
{
29783044
"description": "Button state",
29793045
"name": "ButtonState",
2980-
"supplementaryInformation": "[\"Idle\",\"Pressed\",\"Released\"]",
3046+
"supplementaryInformation": "[\"Idle\",\"Pressed\",\"JustPressed\",\"Released\"]",
29813047
"type": "stringWithSelector"
29823048
}
29833049
],
@@ -5467,11 +5533,11 @@
54675533
"conditions": [
54685534
{
54695535
"type": {
5470-
"value": "SpriteMultitouchJoystick::MultitouchButton::IsReleased"
5536+
"value": "BooleanVariable"
54715537
},
54725538
"parameters": [
5473-
"Object",
5474-
"Behavior",
5539+
"IsReleased",
5540+
"True",
54755541
""
54765542
]
54775543
}
@@ -5500,6 +5566,44 @@
55005566
}
55015567
]
55025568
},
5569+
{
5570+
"type": "BuiltinCommonInstructions::Standard",
5571+
"conditions": [
5572+
{
5573+
"type": {
5574+
"value": "BooleanVariable"
5575+
},
5576+
"parameters": [
5577+
"IsJustPressed",
5578+
"True",
5579+
""
5580+
]
5581+
}
5582+
],
5583+
"actions": [
5584+
{
5585+
"type": {
5586+
"value": "SetBooleanVariable"
5587+
},
5588+
"parameters": [
5589+
"IsJustPressed",
5590+
"False",
5591+
""
5592+
]
5593+
},
5594+
{
5595+
"type": {
5596+
"value": "SpriteMultitouchJoystick::MultitouchButton::SetButtonState"
5597+
},
5598+
"parameters": [
5599+
"Object",
5600+
"Behavior",
5601+
"\"Pressed\"",
5602+
""
5603+
]
5604+
}
5605+
]
5606+
},
55035607
{
55045608
"type": "BuiltinCommonInstructions::Standard",
55055609
"conditions": [
@@ -5592,7 +5696,17 @@
55925696
"parameters": [
55935697
"Object",
55945698
"Behavior",
5595-
"\"Pressed\"",
5699+
"\"JustPressed\"",
5700+
""
5701+
]
5702+
},
5703+
{
5704+
"type": {
5705+
"value": "SetBooleanVariable"
5706+
},
5707+
"parameters": [
5708+
"IsJustPressed",
5709+
"True",
55965710
""
55975711
]
55985712
}
@@ -5663,6 +5777,16 @@
56635777
""
56645778
]
56655779
},
5780+
{
5781+
"type": {
5782+
"value": "SetBooleanVariable"
5783+
},
5784+
"parameters": [
5785+
"IsJustPressed",
5786+
"False",
5787+
""
5788+
]
5789+
},
56665790
{
56675791
"type": {
56685792
"value": "SetNumberVariable"
@@ -5692,11 +5816,11 @@
56925816
"objectGroups": []
56935817
},
56945818
{
5695-
"description": "Check if button is released.",
5696-
"fullName": "Button released",
5819+
"description": "Check if the button was just pressed.",
5820+
"fullName": "Button just pressed",
56975821
"functionType": "Condition",
5698-
"name": "IsReleased",
5699-
"sentence": "Button _PARAM0_ is released",
5822+
"name": "IsJustPressed",
5823+
"sentence": "Button _PARAM0_ was just pressed",
57005824
"events": [
57015825
{
57025826
"type": "BuiltinCommonInstructions::Standard",
@@ -5706,7 +5830,7 @@
57065830
"value": "BooleanVariable"
57075831
},
57085832
"parameters": [
5709-
"IsReleased",
5833+
"IsJustPressed",
57105834
"True",
57115835
""
57125836
]
@@ -5740,7 +5864,7 @@
57405864
"objectGroups": []
57415865
},
57425866
{
5743-
"description": "Check if button is pressed.",
5867+
"description": "Check if the button is pressed.",
57445868
"fullName": "Button pressed",
57455869
"functionType": "Condition",
57465870
"name": "IsPressed",
@@ -5787,6 +5911,54 @@
57875911
],
57885912
"objectGroups": []
57895913
},
5914+
{
5915+
"description": "Check if the button is released.",
5916+
"fullName": "Button released",
5917+
"functionType": "Condition",
5918+
"name": "IsReleased",
5919+
"sentence": "Button _PARAM0_ is released",
5920+
"events": [
5921+
{
5922+
"type": "BuiltinCommonInstructions::Standard",
5923+
"conditions": [
5924+
{
5925+
"type": {
5926+
"value": "BooleanVariable"
5927+
},
5928+
"parameters": [
5929+
"IsReleased",
5930+
"True",
5931+
""
5932+
]
5933+
}
5934+
],
5935+
"actions": [
5936+
{
5937+
"type": {
5938+
"value": "SetReturnBoolean"
5939+
},
5940+
"parameters": [
5941+
"True"
5942+
]
5943+
}
5944+
]
5945+
}
5946+
],
5947+
"parameters": [
5948+
{
5949+
"description": "Object",
5950+
"name": "Object",
5951+
"type": "object"
5952+
},
5953+
{
5954+
"description": "Behavior",
5955+
"name": "Behavior",
5956+
"supplementaryInformation": "SpriteMultitouchJoystick::MultitouchButton",
5957+
"type": "behavior"
5958+
}
5959+
],
5960+
"objectGroups": []
5961+
},
57905962
{
57915963
"fullName": "Button state",
57925964
"functionType": "Action",
@@ -5828,7 +6000,7 @@
58286000
{
58296001
"description": "Button state",
58306002
"name": "ButtonState",
5831-
"supplementaryInformation": "[\"Idle\",\"Pressed\",\"Released\"]",
6003+
"supplementaryInformation": "[\"Idle\",\"JustPressed\",\"Pressed\",\"Released\"]",
58326004
"type": "stringWithSelector"
58336005
}
58346006
],
@@ -5869,6 +6041,13 @@
58696041
"hidden": true,
58706042
"name": "IsReleased"
58716043
},
6044+
{
6045+
"value": "",
6046+
"type": "Boolean",
6047+
"label": "Button just pressed",
6048+
"hidden": true,
6049+
"name": "IsJustPressed"
6050+
},
58726051
{
58736052
"value": "0",
58746053
"type": "Number",
@@ -8283,7 +8462,6 @@
82838462
}
82848463
],
82858464
"instances": [],
8286-
"editionSettings": {},
82878465
"eventsFunctions": [
82888466
{
82898467
"fullName": "",

0 commit comments

Comments
 (0)