|
404 | 404 | "identifier": "https://asset-resources.gdevelop.io/public-resources/Multitouch joysticks/13d8225be69d0f11b6de965cac0d840e7e63e2510a638af89ae42b052caa2460_Shaded dark joystick thumb.png",
|
405 | 405 | "name": "Shaded dark joystick thumb.png"
|
406 | 406 | }
|
| 407 | + }, |
| 408 | + { |
| 409 | + "alwaysLoaded": false, |
| 410 | + "file": "Camera.png", |
| 411 | + "kind": "image", |
| 412 | + "metadata": "", |
| 413 | + "name": "Camera.png", |
| 414 | + "smoothed": true, |
| 415 | + "userAdded": true |
407 | 416 | }
|
408 | 417 | ],
|
409 | 418 | "resourceFolders": []
|
|
476 | 485 | ],
|
477 | 486 | "instances": [
|
478 | 487 | {
|
479 |
| - "angle": 180, |
| 488 | + "angle": 202, |
480 | 489 | "customSize": true,
|
481 |
| - "height": 20, |
| 490 | + "height": 40, |
482 | 491 | "layer": "",
|
483 | 492 | "name": "Camera",
|
484 | 493 | "persistentUuid": "b47b3320-fbbb-473d-8e2a-9eb5497c56f0",
|
485 |
| - "width": 20, |
| 494 | + "width": 40, |
486 | 495 | "x": 475,
|
487 |
| - "y": 301, |
| 496 | + "y": 325, |
488 | 497 | "zOrder": 2,
|
489 | 498 | "numberProperties": [
|
490 | 499 | {
|
491 | 500 | "name": "depth",
|
492 |
| - "value": 0 |
| 501 | + "value": 1 |
493 | 502 | },
|
494 | 503 | {
|
495 | 504 | "name": "z",
|
|
1022 | 1031 | "depth": 100,
|
1023 | 1032 | "enableTextureTransparency": false,
|
1024 | 1033 | "facesOrientation": "Y",
|
1025 |
| - "frontFaceResourceName": "", |
| 1034 | + "frontFaceResourceName": "Camera.png", |
1026 | 1035 | "backFaceResourceName": "",
|
1027 | 1036 | "backFaceUpThroughWhichAxisRotation": "X",
|
1028 | 1037 | "leftFaceResourceName": "",
|
1029 | 1038 | "rightFaceResourceName": "",
|
1030 | 1039 | "topFaceResourceName": "",
|
1031 | 1040 | "bottomFaceResourceName": "",
|
1032 |
| - "frontFaceVisible": false, |
| 1041 | + "frontFaceVisible": true, |
1033 | 1042 | "backFaceVisible": false,
|
1034 | 1043 | "leftFaceVisible": false,
|
1035 | 1044 | "rightFaceVisible": false,
|
|
1295 | 1304 | "textG": 0,
|
1296 | 1305 | "textR": 0
|
1297 | 1306 | },
|
1298 |
| - "comment": "Camera object rotates along with the player's cursor, and the in game camera rotates based on the position of the Camera object", |
1299 |
| - "comment2": "" |
| 1307 | + "comment": "Camera object rotates along with the player's cursor, and the in game camera rotates based on the position of the Camera object" |
1300 | 1308 | },
|
1301 | 1309 | {
|
1302 | 1310 | "type": "BuiltinCommonInstructions::Standard",
|
|
1402 | 1410 | "parameters": [
|
1403 | 1411 | "Camera",
|
1404 | 1412 | "+",
|
1405 |
| - "LookJoystick.StickForceX()" |
| 1413 | + "LookJoystick.StickForceX() * 4" |
1406 | 1414 | ]
|
1407 | 1415 | },
|
1408 | 1416 | {
|
|
1412 | 1420 | "parameters": [
|
1413 | 1421 | "Camera",
|
1414 | 1422 | "+",
|
1415 |
| - "LookJoystick.StickForceY()" |
| 1423 | + "LookJoystick.StickForceY() * 2" |
1416 | 1424 | ]
|
1417 | 1425 | }
|
1418 | 1426 | ]
|
|
1439 | 1447 | "parameters": [
|
1440 | 1448 | "Camera",
|
1441 | 1449 | "+",
|
1442 |
| - "Gamepads::StickForceX(1, \"Right\")" |
| 1450 | + "Gamepads::StickForceX(1, \"Right\") * 4" |
1443 | 1451 | ]
|
1444 | 1452 | },
|
1445 | 1453 | {
|
|
1449 | 1457 | "parameters": [
|
1450 | 1458 | "Camera",
|
1451 | 1459 | "+",
|
1452 |
| - "Gamepads::StickForceY(1, \"Right\")" |
| 1460 | + "Gamepads::StickForceY(1, \"Right\") * 2" |
1453 | 1461 | ]
|
1454 | 1462 | }
|
1455 | 1463 | ]
|
|
1464 | 1472 | "textG": 0,
|
1465 | 1473 | "textR": 0
|
1466 | 1474 | },
|
1467 |
| - "comment": "Make sure the camera doesn't get upsidedown.", |
1468 |
| - "comment2": "" |
| 1475 | + "comment": "Make sure the camera doesn't get upsidedown." |
1469 | 1476 | },
|
1470 | 1477 | {
|
1471 | 1478 | "type": "BuiltinCommonInstructions::Standard",
|
|
1522 | 1529 | "textG": 0,
|
1523 | 1530 | "textR": 0
|
1524 | 1531 | },
|
1525 |
| - "comment": "To allow player to walk under an object, it needs to be neglected from picking when separating from obstacles", |
1526 |
| - "comment2": "" |
| 1532 | + "comment": "To allow player to walk under an object, it needs to be neglected from picking when separating from obstacles" |
1527 | 1533 | },
|
1528 | 1534 | {
|
1529 | 1535 | "type": "BuiltinCommonInstructions::Standard",
|
|
1562 | 1568 | "textG": 0,
|
1563 | 1569 | "textR": 0
|
1564 | 1570 | },
|
1565 |
| - "comment": "Moving the Camera object along the X/Y plane with forces", |
1566 |
| - "comment2": "" |
| 1571 | + "comment": "Moving the Camera object along the X/Y plane with forces" |
1567 | 1572 | },
|
1568 | 1573 | {
|
1569 | 1574 | "type": "BuiltinCommonInstructions::Standard",
|
|
1599 | 1604 | "parameters": [
|
1600 | 1605 | "Camera",
|
1601 | 1606 | "Camera.Angle()",
|
1602 |
| - "200", |
| 1607 | + "400", |
1603 | 1608 | ""
|
1604 | 1609 | ]
|
1605 | 1610 | }
|
|
1626 | 1631 | "parameters": [
|
1627 | 1632 | "Camera",
|
1628 | 1633 | "Camera.Angle()+180",
|
1629 |
| - "200", |
| 1634 | + "400", |
1630 | 1635 | ""
|
1631 | 1636 | ]
|
1632 | 1637 | }
|
|
1653 | 1658 | "parameters": [
|
1654 | 1659 | "Camera",
|
1655 | 1660 | "Camera.Angle() + 90",
|
1656 |
| - "200", |
| 1661 | + "400", |
1657 | 1662 | ""
|
1658 | 1663 | ]
|
1659 | 1664 | }
|
|
1680 | 1685 | "parameters": [
|
1681 | 1686 | "Camera",
|
1682 | 1687 | "Camera.Angle() - 90",
|
1683 |
| - "200", |
| 1688 | + "400", |
1684 | 1689 | ""
|
1685 | 1690 | ]
|
1686 | 1691 | }
|
|
1715 | 1720 | "parameters": [
|
1716 | 1721 | "Camera",
|
1717 | 1722 | "WalkJoystick.StickAngle() + Camera.Angle() + 90",
|
1718 |
| - "200", |
| 1723 | + "400", |
1719 | 1724 | ""
|
1720 | 1725 | ]
|
1721 | 1726 | }
|
|
1756 | 1761 | "parameters": [
|
1757 | 1762 | "Camera",
|
1758 | 1763 | "Gamepads::StickAngle(1, \"Left\") + Camera.Angle() + 90",
|
1759 |
| - "200", |
| 1764 | + "400", |
1760 | 1765 | ""
|
1761 | 1766 | ]
|
1762 | 1767 | }
|
|
6371 | 6376 | "textG": 0,
|
6372 | 6377 | "textR": 0
|
6373 | 6378 | },
|
6374 |
| - "comment": "Make sure the joystick has moved from center", |
6375 |
| - "comment2": "" |
| 6379 | + "comment": "Make sure the joystick has moved from center" |
6376 | 6380 | },
|
6377 | 6381 | {
|
6378 | 6382 | "type": "BuiltinCommonInstructions::Standard",
|
|
6452 | 6456 | "textG": 0,
|
6453 | 6457 | "textR": 0
|
6454 | 6458 | },
|
6455 |
| - "comment": "Make sure the joystick has moved from center", |
6456 |
| - "comment2": "" |
| 6459 | + "comment": "Make sure the joystick has moved from center" |
6457 | 6460 | },
|
6458 | 6461 | {
|
6459 | 6462 | "type": "BuiltinCommonInstructions::Standard",
|
|
7085 | 7088 | "textG": 0,
|
7086 | 7089 | "textR": 0
|
7087 | 7090 | },
|
7088 |
| - "comment": "Move thumb back to center when not being pressed (acts like a spring on a real controller)", |
7089 |
| - "comment2": "" |
| 7091 | + "comment": "Move thumb back to center when not being pressed (acts like a spring on a real controller)" |
7090 | 7092 | },
|
7091 | 7093 | {
|
7092 | 7094 | "type": "BuiltinCommonInstructions::Standard",
|
|
0 commit comments