Newer
Older
System38 / project / scenes / e04-03-desm3 / actors / actor_3.gbsres
{
  "_resourceType": "actor",
  "id": "a60a4807-7514-47b3-9a96-5b7076c8aad3",
  "_index": 2,
  "symbol": "actor_36",
  "prefabId": "",
  "name": "",
  "x": 12,
  "y": 2,
  "frame": 0,
  "animate": false,
  "spriteSheetId": "94d68f39-5181-49db-bfb3-51525f7965c3",
  "paletteId": "",
  "direction": "down",
  "moveSpeed": 1,
  "animSpeed": 15,
  "isPinned": false,
  "persistent": false,
  "collisionGroup": "",
  "prefabScriptOverrides": {},
  "script": [
    {
      "command": "EVENT_SOUND_PLAY_EFFECT",
      "args": {
        "type": "crash",
        "priority": "medium",
        "pitch": 4,
        "frequency": 200,
        "duration": 0.2,
        "wait": true,
        "effect": 0
      },
      "id": "023275e3-0f26-47e6-9269-972f25eb0702"
    },
    {
      "command": "EVENT_DEC_VALUE",
      "args": {
        "variable": "L0"
      },
      "id": "e5e0215a-e7ee-4819-940d-8b970a4209f3"
    },
    {
      "command": "EVENT_IF",
      "args": {
        "variable": "L0",
        "operator": "==",
        "comparator": "0",
        "__collapseElse": false,
        "condition": {
          "type": "eq",
          "valueA": {
            "type": "variable",
            "value": "L0"
          },
          "valueB": {
            "type": "number",
            "value": 0
          }
        }
      },
      "children": {
        "true": [
          {
            "command": "EVENT_DEC_VALUE",
            "args": {
              "variable": "T0",
              "__collapse": true
            },
            "id": "45cf6dbd-326c-4131-bec0-b834fc29a3e2"
          },
          {
            "command": "EVENT_IF",
            "args": {
              "variable": "T0",
              "operator": "==",
              "comparator": "0",
              "__collapseElse": true,
              "__collapse": true,
              "condition": {
                "type": "eq",
                "valueA": {
                  "type": "variable",
                  "value": "T0"
                },
                "valueB": {
                  "type": "number",
                  "value": 0
                }
              }
            },
            "children": {
              "true": [
                {
                  "command": "EVENT_SWITCH_SCENE",
                  "args": {
                    "sceneId": "96ace838-d79f-4794-8454-61f99f342256",
                    "x": {
                      "type": "number",
                      "value": 9
                    },
                    "y": {
                      "type": "number",
                      "value": 11
                    },
                    "direction": "",
                    "fadeSpeed": "2"
                  },
                  "id": "005ac080-047b-46b2-9534-fed68df7e539"
                }
              ],
              "false": []
            },
            "id": "64b2ff37-643b-43d2-af9b-893c91bde9e5"
          },
          {
            "command": "EVENT_ACTOR_HIDE",
            "args": {
              "actorId": "$self$",
              "__collapse": true
            },
            "id": "45fe7add-68e3-4400-9b82-ec6d12dec505"
          },
          {
            "command": "EVENT_ACTOR_COLLISIONS_DISABLE",
            "args": {
              "actorId": "$self$"
            },
            "id": "09c767cc-8a51-4b02-b321-0fc1ffa892fa"
          }
        ],
        "false": [
          {
            "command": "EVENT_ACTOR_MOVE_RELATIVE",
            "args": {
              "actorId": "$self$",
              "x": {
                "type": "number",
                "value": 0
              },
              "y": {
                "type": "number",
                "value": -1
              },
              "moveType": "vertical",
              "useCollisions": false,
              "units": "pixels"
            },
            "id": "45fd0542-c406-4c20-8bd1-6b949b736e63"
          }
        ]
      },
      "id": "9996eb13-5a40-40f0-b21d-04bd8d6abc28"
    }
  ],
  "startScript": [
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "L0",
        "value": {
          "type": "number",
          "value": 3
        }
      },
      "id": "1a62bf25-2223-4eb2-92fe-253bb03ba438"
    }
  ],
  "updateScript": [],
  "hit1Script": [],
  "hit2Script": [],
  "hit3Script": []
}