Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,015 changes: 551 additions & 464 deletions examples/geometry-monster/geometry-monster.json

Large diffs are not rendered by default.

1,023 changes: 555 additions & 468 deletions examples/multiplayer-bounce-puzzle/multiplayer-bounce-puzzle.json

Large diffs are not rendered by default.

1,019 changes: 553 additions & 466 deletions examples/multiplayer-jump-game/multiplayer-jump-game.json

Large diffs are not rendered by default.

2,256 changes: 1,400 additions & 856 deletions examples/multiplayer-platformer-pickup/multiplayer-platformer-pickup.json

Large diffs are not rendered by default.

1,025 changes: 556 additions & 469 deletions examples/pairs/pairs.json

Large diffs are not rendered by default.

993 changes: 540 additions & 453 deletions examples/plinko/plinko.json

Large diffs are not rendered by default.

218 changes: 198 additions & 20 deletions examples/save-load-simple/save-load-simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@
"name": "SpriteMultitouchJoystick",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_controller_joystick_arrows_direction.svg",
"shortDescription": "Joysticks or buttons for touchscreens.",
"version": "1.8.4",
"version": "1.9.0",
"description": [
"Multitouch joysticks are objects showing a joystick on the screen, useful for mobile. They work like a physical gamepad:",
"- 4 or 8 directions",
Expand Down Expand Up @@ -2843,11 +2843,11 @@
"objectGroups": []
},
{
"description": "Check if a button is pressed on a gamepad.",
"fullName": "Multitouch controller button pressed",
"description": "Check if a button was just pressed on a multitouch controller.",
"fullName": "Multitouch controller button just pressed",
"functionType": "Condition",
"name": "IsButtonPressed",
"sentence": "Button _PARAM2_ of multitouch controller _PARAM1_ is pressed",
"name": "IsButtonJustPressed",
"sentence": "Button _PARAM2_ of multitouch controller _PARAM1_ was just pressed",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand All @@ -2859,7 +2859,7 @@
"parameters": [
"Controllers[ControllerIdentifier].Buttons[Button].State",
"=",
"\"Pressed\""
"\"JustPressed\""
]
}
],
Expand Down Expand Up @@ -2891,7 +2891,73 @@
"objectGroups": []
},
{
"description": "Check if a button is released on a gamepad.",
"description": "Check if a button is pressed on a multitouch controller.",
"fullName": "Multitouch controller button pressed",
"functionType": "Condition",
"name": "IsButtonPressed",
"sentence": "Button _PARAM2_ of multitouch controller _PARAM1_ is pressed",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Or"
},
"parameters": [],
"subInstructions": [
{
"type": {
"value": "StringVariable"
},
"parameters": [
"Controllers[ControllerIdentifier].Buttons[Button].State",
"=",
"\"Pressed\""
]
},
{
"type": {
"value": "StringVariable"
},
"parameters": [
"Controllers[ControllerIdentifier].Buttons[Button].State",
"=",
"\"JustPressed\""
]
}
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [
{
"description": "Multitouch controller identifier (1, 2, 3, 4...)",
"name": "ControllerIdentifier",
"type": "expression"
},
{
"description": "Button name",
"name": "Button",
"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\"]",
"type": "string"
}
],
"objectGroups": []
},
{
"description": "Check if a button is released on a multitouch controller.",
"fullName": "Multitouch controller button released",
"functionType": "Condition",
"name": "IsButtonReleased",
Expand Down Expand Up @@ -2977,7 +3043,7 @@
{
"description": "Button state",
"name": "ButtonState",
"supplementaryInformation": "[\"Idle\",\"Pressed\",\"Released\"]",
"supplementaryInformation": "[\"Idle\",\"Pressed\",\"JustPressed\",\"Released\"]",
"type": "stringWithSelector"
}
],
Expand Down Expand Up @@ -5467,11 +5533,11 @@
"conditions": [
{
"type": {
"value": "SpriteMultitouchJoystick::MultitouchButton::IsReleased"
"value": "BooleanVariable"
},
"parameters": [
"Object",
"Behavior",
"IsReleased",
"True",
""
]
}
Expand Down Expand Up @@ -5500,6 +5566,44 @@
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BooleanVariable"
},
"parameters": [
"IsJustPressed",
"True",
""
]
}
],
"actions": [
{
"type": {
"value": "SetBooleanVariable"
},
"parameters": [
"IsJustPressed",
"False",
""
]
},
{
"type": {
"value": "SpriteMultitouchJoystick::MultitouchButton::SetButtonState"
},
"parameters": [
"Object",
"Behavior",
"\"Pressed\"",
""
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
Expand Down Expand Up @@ -5592,7 +5696,17 @@
"parameters": [
"Object",
"Behavior",
"\"Pressed\"",
"\"JustPressed\"",
""
]
},
{
"type": {
"value": "SetBooleanVariable"
},
"parameters": [
"IsJustPressed",
"True",
""
]
}
Expand Down Expand Up @@ -5663,6 +5777,16 @@
""
]
},
{
"type": {
"value": "SetBooleanVariable"
},
"parameters": [
"IsJustPressed",
"False",
""
]
},
{
"type": {
"value": "SetNumberVariable"
Expand Down Expand Up @@ -5692,11 +5816,11 @@
"objectGroups": []
},
{
"description": "Check if button is released.",
"fullName": "Button released",
"description": "Check if the button was just pressed.",
"fullName": "Button just pressed",
"functionType": "Condition",
"name": "IsReleased",
"sentence": "Button _PARAM0_ is released",
"name": "IsJustPressed",
"sentence": "Button _PARAM0_ was just pressed",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
Expand All @@ -5706,7 +5830,7 @@
"value": "BooleanVariable"
},
"parameters": [
"IsReleased",
"IsJustPressed",
"True",
""
]
Expand Down Expand Up @@ -5740,7 +5864,7 @@
"objectGroups": []
},
{
"description": "Check if button is pressed.",
"description": "Check if the button is pressed.",
"fullName": "Button pressed",
"functionType": "Condition",
"name": "IsPressed",
Expand Down Expand Up @@ -5787,6 +5911,54 @@
],
"objectGroups": []
},
{
"description": "Check if the button is released.",
"fullName": "Button released",
"functionType": "Condition",
"name": "IsReleased",
"sentence": "Button _PARAM0_ is released",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BooleanVariable"
},
"parameters": [
"IsReleased",
"True",
""
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"type": "object"
},
{
"description": "Behavior",
"name": "Behavior",
"supplementaryInformation": "SpriteMultitouchJoystick::MultitouchButton",
"type": "behavior"
}
],
"objectGroups": []
},
{
"fullName": "Button state",
"functionType": "Action",
Expand Down Expand Up @@ -5828,7 +6000,7 @@
{
"description": "Button state",
"name": "ButtonState",
"supplementaryInformation": "[\"Idle\",\"Pressed\",\"Released\"]",
"supplementaryInformation": "[\"Idle\",\"JustPressed\",\"Pressed\",\"Released\"]",
"type": "stringWithSelector"
}
],
Expand Down Expand Up @@ -5869,6 +6041,13 @@
"hidden": true,
"name": "IsReleased"
},
{
"value": "",
"type": "Boolean",
"label": "Button just pressed",
"hidden": true,
"name": "IsJustPressed"
},
{
"value": "0",
"type": "Number",
Expand Down Expand Up @@ -8283,7 +8462,6 @@
}
],
"instances": [],
"editionSettings": {},
"eventsFunctions": [
{
"fullName": "",
Expand Down
Loading
Loading