|
1362 | 1362 | "parameters": [
|
1363 | 1363 | "",
|
1364 | 1364 | "Button",
|
| 1365 | + "Effect", |
1365 | 1366 | ""
|
1366 | 1367 | ]
|
1367 | 1368 | }
|
|
2253 | 2254 | "name": "MousePointerLock",
|
2254 | 2255 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Virtual Reality/Virtual Reality_360_rotate_vr_movement.svg",
|
2255 | 2256 | "shortDescription": "This behavior removes the limit on the distance the mouse can move and hides the cursor.",
|
2256 |
| - "version": "0.1.5", |
| 2257 | + "version": "0.1.4", |
2257 | 2258 | "description": [
|
2258 | 2259 | "This behavior removes the limit on the distance the mouse can move and hides the cursor.",
|
2259 | 2260 | "",
|
|
2262 | 2263 | "",
|
2263 | 2264 | "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.",
|
2264 | 2265 | "",
|
2265 |
| - "Locking the pointer locks `CursorX()` and `CursorY()` expressions.", |
| 2266 | + "Locking the pointer locks `MouseX()` and `MouseY()` expressions.", |
2266 | 2267 | "Use `MovementX()` and `MovementY()` instead.",
|
2267 | 2268 | ""
|
2268 | 2269 | ],
|
|
2273 | 2274 | "tags": [
|
2274 | 2275 | "mouse",
|
2275 | 2276 | "lock",
|
| 2277 | + "cursor", |
2276 | 2278 | "pointer"
|
2277 | 2279 | ],
|
2278 | 2280 | "authorIds": [
|
|
2294 | 2296 | "gdjs._MousePointerLockExtension = {};",
|
2295 | 2297 | "gdjs._MousePointerLockExtension.movement = { x: 0, y: 0 };",
|
2296 | 2298 | "",
|
2297 |
| - "canvas.addEventListener(\"pointermove\", (e) => {", |
| 2299 | + "canvas.addEventListener(\"mousemove\", (e) => {", |
2298 | 2300 | " gdjs._MousePointerLockExtension.movement.x += e.movementX || 0;",
|
2299 | 2301 | " gdjs._MousePointerLockExtension.movement.y += e.movementY || 0;",
|
2300 | 2302 | "}, false);"
|
|
2377 | 2379 | "type": "BuiltinCommonInstructions::JsCode",
|
2378 | 2380 | "inlineCode": [
|
2379 | 2381 | "const canvas = runtimeScene.getGame().getRenderer().getCanvas();\r",
|
2380 |
| - "canvas.requestPointerLock();" |
| 2382 | + "canvas.requestPointerLock({ unadjustedMovement: true });" |
2381 | 2383 | ],
|
2382 | 2384 | "parameterObjects": "",
|
2383 | 2385 | "useStrict": true,
|
|
2446 | 2448 | "- Isometric view",
|
2447 | 2449 | ""
|
2448 | 2450 | ],
|
| 2451 | + "origin": { |
| 2452 | + "identifier": "ThirdPersonCamera", |
| 2453 | + "name": "gdevelop-extension-store" |
| 2454 | + }, |
2449 | 2455 | "tags": [
|
2450 | 2456 | "3d",
|
2451 | 2457 | "camera"
|
|
6011 | 6017 | "actions": [
|
6012 | 6018 | {
|
6013 | 6019 | "type": {
|
6014 |
| - "value": "EnableEffect" |
| 6020 | + "value": "EffectCapability::EffectBehavior::EnableEffect" |
6015 | 6021 | },
|
6016 | 6022 | "parameters": [
|
6017 | 6023 | "Button",
|
| 6024 | + "Effect", |
6018 | 6025 | "\"Black\"",
|
6019 |
| - "no" |
| 6026 | + "" |
6020 | 6027 | ]
|
6021 | 6028 | },
|
6022 | 6029 | {
|
6023 | 6030 | "type": {
|
6024 |
| - "value": "EnableEffect" |
| 6031 | + "value": "EffectCapability::EffectBehavior::EnableEffect" |
6025 | 6032 | },
|
6026 | 6033 | "parameters": [
|
6027 | 6034 | "Button",
|
| 6035 | + "Effect", |
6028 | 6036 | "\"White\"",
|
6029 | 6037 | "yes"
|
6030 | 6038 | ]
|
|
6058 | 6066 | "actions": [
|
6059 | 6067 | {
|
6060 | 6068 | "type": {
|
6061 |
| - "value": "EnableEffect" |
| 6069 | + "value": "EffectCapability::EffectBehavior::EnableEffect" |
6062 | 6070 | },
|
6063 | 6071 | "parameters": [
|
6064 | 6072 | "Button",
|
| 6073 | + "Effect", |
6065 | 6074 | "\"Black\"",
|
6066 | 6075 | "yes"
|
6067 | 6076 | ]
|
6068 | 6077 | },
|
6069 | 6078 | {
|
6070 | 6079 | "type": {
|
6071 |
| - "value": "EnableEffect" |
| 6080 | + "value": "EffectCapability::EffectBehavior::EnableEffect" |
6072 | 6081 | },
|
6073 | 6082 | "parameters": [
|
6074 | 6083 | "Button",
|
| 6084 | + "Effect", |
6075 | 6085 | "\"White\"",
|
6076 | 6086 | "no"
|
6077 | 6087 | ]
|
|
6085 | 6095 | "name": "Button",
|
6086 | 6096 | "supplementaryInformation": "SpriteToggleSwitch::SpriteToggleSwitch",
|
6087 | 6097 | "type": "objectList"
|
| 6098 | + }, |
| 6099 | + { |
| 6100 | + "description": "Effect capacity", |
| 6101 | + "name": "Effect", |
| 6102 | + "supplementaryInformation": "EffectCapability::EffectBehavior", |
| 6103 | + "type": "behavior" |
6088 | 6104 | }
|
6089 | 6105 | ],
|
6090 | 6106 | "objectGroups": []
|
|
0 commit comments