diff --git a/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json b/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json index 23361c8fe..81ff707c6 100644 --- a/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json +++ b/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json @@ -1362,6 +1362,7 @@ "parameters": [ "", "Button", + "Effect", "" ] } @@ -2253,7 +2254,7 @@ "name": "MousePointerLock", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Virtual Reality/Virtual Reality_360_rotate_vr_movement.svg", "shortDescription": "This behavior removes the limit on the distance the mouse can move and hides the cursor.", - "version": "0.1.5", + "version": "0.1.4", "description": [ "This behavior removes the limit on the distance the mouse can move and hides the cursor.", "", @@ -2262,7 +2263,7 @@ "", "Game players don't have to worry about leaving the gameplay area or accidentally clicking on another application that moves the mouse focus away from the game.", "", - "Locking the pointer locks `CursorX()` and `CursorY()` expressions.", + "Locking the pointer locks `MouseX()` and `MouseY()` expressions.", "Use `MovementX()` and `MovementY()` instead.", "" ], @@ -2273,6 +2274,7 @@ "tags": [ "mouse", "lock", + "cursor", "pointer" ], "authorIds": [ @@ -2294,7 +2296,7 @@ "gdjs._MousePointerLockExtension = {};", "gdjs._MousePointerLockExtension.movement = { x: 0, y: 0 };", "", - "canvas.addEventListener(\"pointermove\", (e) => {", + "canvas.addEventListener(\"mousemove\", (e) => {", " gdjs._MousePointerLockExtension.movement.x += e.movementX || 0;", " gdjs._MousePointerLockExtension.movement.y += e.movementY || 0;", "}, false);" @@ -2377,7 +2379,7 @@ "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ "const canvas = runtimeScene.getGame().getRenderer().getCanvas();\r", - "canvas.requestPointerLock();" + "canvas.requestPointerLock({ unadjustedMovement: true });" ], "parameterObjects": "", "useStrict": true, @@ -2446,6 +2448,10 @@ "- Isometric view", "" ], + "origin": { + "identifier": "ThirdPersonCamera", + "name": "gdevelop-extension-store" + }, "tags": [ "3d", "camera" @@ -6011,20 +6017,22 @@ "actions": [ { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"Black\"", - "no" + "" ] }, { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"White\"", "yes" ] @@ -6058,20 +6066,22 @@ "actions": [ { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"Black\"", "yes" ] }, { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"White\"", "no" ] @@ -6085,6 +6095,12 @@ "name": "Button", "supplementaryInformation": "SpriteToggleSwitch::SpriteToggleSwitch", "type": "objectList" + }, + { + "description": "Effect capacity", + "name": "Effect", + "supplementaryInformation": "EffectCapability::EffectBehavior", + "type": "behavior" } ], "objectGroups": []