Newer
Older
System38 / project / scenes / e04-03-desm6 / actors / actor_4.gbsres
{
  "_resourceType": "actor",
  "id": "c0a800ec-20a0-4d38-ab17-8db54ed02dba",
  "_index": 3,
  "symbol": "actor_63",
  "prefabId": "",
  "name": "",
  "x": 6,
  "y": 17,
  "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": "8dc610a9-cae0-4593-ac6e-eeb842e59137"
    },
    {
      "command": "EVENT_DEC_VALUE",
      "args": {
        "variable": "L0"
      },
      "id": "f25963e4-187d-496c-8cc3-e08d02162ea9"
    },
    {
      "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": "e70e2ffd-4d50-472e-a68d-fe0df63a00de"
          },
          {
            "command": "EVENT_IF",
            "args": {
              "variable": "T0",
              "operator": "==",
              "comparator": "0",
              "__collapseElse": true,
              "__collapse": false,
              "condition": {
                "type": "eq",
                "valueA": {
                  "type": "variable",
                  "value": "T0"
                },
                "valueB": {
                  "type": "number",
                  "value": 0
                }
              }
            },
            "children": {
              "true": [
                {
                  "command": "EVENT_SWITCH_SCENE",
                  "args": {
                    "sceneId": "a8e48848-409a-43cc-8aaa-99d724f73e90",
                    "x": {
                      "type": "number",
                      "value": 9
                    },
                    "y": {
                      "type": "number",
                      "value": 11
                    },
                    "direction": "",
                    "fadeSpeed": "2"
                  },
                  "id": "cff3a772-d7bd-4d37-984f-8840f52416a5"
                }
              ],
              "false": []
            },
            "id": "a1fed486-9507-451b-b996-8e356cdd1616"
          },
          {
            "command": "EVENT_ACTOR_HIDE",
            "args": {
              "actorId": "$self$",
              "__collapse": true
            },
            "id": "9b7c34c6-65bc-47af-bcb3-f6666ab2836f"
          },
          {
            "command": "EVENT_ACTOR_COLLISIONS_DISABLE",
            "args": {
              "actorId": "$self$"
            },
            "id": "c7abe81a-3003-40cb-8d51-a47d8916923f"
          }
        ],
        "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": "30e76376-379f-4bea-8d5c-9a9dfbd99887"
          }
        ]
      },
      "id": "5aef64de-2616-462f-b3ef-1535b6a2190f"
    }
  ],
  "startScript": [
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "L0",
        "value": {
          "type": "number",
          "value": 10
        }
      },
      "id": "c363e591-da4b-4bc5-a77f-123889c44026"
    }
  ],
  "updateScript": [],
  "hit1Script": [],
  "hit2Script": [],
  "hit3Script": []
}