Newer
Older
System38 / project / scenes / e05-02-pasillo / triggers / trigger_2.gbsres
{
  "_resourceType": "trigger",
  "id": "7bc1abec-f36f-474e-92ad-32152d225145",
  "_index": 1,
  "symbol": "trigger_2",
  "prefabId": "",
  "name": "",
  "x": 13,
  "y": 3,
  "width": 1,
  "height": 4,
  "prefabScriptOverrides": {},
  "script": [
    {
      "command": "EVENT_IF_ACTOR_AT_POSITION",
      "args": {
        "actorId": "c1200b7d-2065-42ea-8d4f-8e616b84a351",
        "x": {
          "type": "number",
          "value": 9
        },
        "y": {
          "type": "number",
          "value": 4
        },
        "__collapseElse": true
      },
      "children": {
        "true": [
          {
            "command": "EVENT_ACTOR_MOVE_TO",
            "args": {
              "actorId": "$self$",
              "x": {
                "type": "number",
                "value": 11
              },
              "y": {
                "type": "number",
                "value": 4
              },
              "moveType": "vertical",
              "useCollisions": false
            },
            "id": "82dd241c-3058-4e0c-9d77-5e53362de9eb"
          },
          {
            "command": "EVENT_LOOP_FOR",
            "args": {
              "variable": "L0",
              "from": {
                "type": "number",
                "value": 0
              },
              "comparison": "<=",
              "to": {
                "type": "number",
                "value": 15
              },
              "operation": "+=",
              "value": {
                "type": "number",
                "value": 1
              }
            },
            "children": {
              "true": [
                {
                  "command": "EVENT_SOUND_PLAY_EFFECT",
                  "args": {
                    "type": "crash",
                    "priority": "medium",
                    "pitch": 4,
                    "frequency": 200,
                    "duration": 0.5,
                    "wait": false,
                    "effect": 0
                  },
                  "id": "d35be045-d2cf-4c72-8388-a5ec7fcedde0"
                },
                {
                  "command": "EVENT_ACTOR_MOVE_RELATIVE",
                  "args": {
                    "actorId": "c1200b7d-2065-42ea-8d4f-8e616b84a351",
                    "x": {
                      "type": "number",
                      "value": -2
                    },
                    "y": {
                      "type": "number",
                      "value": 0
                    },
                    "moveType": "horizontal",
                    "useCollisions": false,
                    "units": "pixels"
                  },
                  "id": "22d057c1-55cc-4373-ae20-18280da9739b"
                },
                {
                  "command": "EVENT_WAIT",
                  "args": {
                    "time": 0.5,
                    "frames": 10,
                    "units": "frames"
                  },
                  "id": "9f1d9cb5-97e2-42c4-9d41-07a5e79ae666"
                },
                {
                  "command": "EVENT_ACTOR_MOVE_RELATIVE",
                  "args": {
                    "actorId": "c1200b7d-2065-42ea-8d4f-8e616b84a351",
                    "x": {
                      "type": "number",
                      "value": 1
                    },
                    "y": {
                      "type": "number",
                      "value": 0
                    },
                    "moveType": "horizontal",
                    "useCollisions": false,
                    "units": "pixels"
                  },
                  "id": "0d2688b7-9b37-4c57-85e4-b952580db9e4"
                },
                {
                  "command": "EVENT_WAIT",
                  "args": {
                    "time": 0.5,
                    "frames": 5,
                    "units": "frames"
                  },
                  "id": "5d8c21b9-28dc-43e3-a7f2-8634571f5246"
                }
              ]
            },
            "id": "75bfe104-1866-4d51-ac99-4247e98d0bcc"
          },
          {
            "command": "EVENT_ACTOR_MOVE_TO",
            "args": {
              "actorId": "c1200b7d-2065-42ea-8d4f-8e616b84a351",
              "x": {
                "type": "number",
                "value": 3
              },
              "y": {
                "type": "number",
                "value": 4
              },
              "moveType": "horizontal",
              "useCollisions": false
            },
            "id": "a3a7c7a3-6720-430b-9207-501cbb0dda9c"
          },
          {
            "command": "EVENT_ACTOR_MOVE_TO",
            "args": {
              "actorId": "$self$",
              "x": {
                "type": "number",
                "value": 5
              },
              "y": {
                "type": "number",
                "value": 4
              },
              "moveType": "horizontal",
              "useCollisions": false
            },
            "id": "f7c59367-bbf7-41ce-9db2-e65bca8cc4b0"
          },
          {
            "command": "EVENT_SWITCH_SCENE",
            "args": {
              "sceneId": "fb282792-d855-40b6-abe2-be69892e6834",
              "x": {
                "type": "number",
                "value": 11
              },
              "y": {
                "type": "number",
                "value": 12
              },
              "direction": "up",
              "fadeSpeed": "2"
            },
            "id": "a9251f86-2b48-4455-98ef-6fe7841e4fbc"
          }
        ],
        "false": []
      },
      "id": "33a41377-94b9-449c-a76d-772f5e065d1b"
    }
  ],
  "leaveScript": []
}