Newer
Older
System38 / project / scenes / e04-03-desm6 / actors / actor_3.gbsres
{
  "_resourceType": "actor",
  "id": "997aa6f7-cc83-46e9-9d07-b04a95d385ab",
  "_index": 2,
  "symbol": "actor_62",
  "prefabId": "",
  "name": "",
  "x": 6,
  "y": 7,
  "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": "5bf8d325-3795-4b06-a97a-6e4a779e1bce"
    },
    {
      "command": "EVENT_DEC_VALUE",
      "args": {
        "variable": "L0"
      },
      "id": "f1e65cbe-8dd9-47bd-8428-57ff97c8f5f3"
    },
    {
      "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": "cfdec82b-9ab8-4329-b95c-8c960b772fa3"
          },
          {
            "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": "0112b5f8-6455-4139-87cc-a91963cf566c"
                }
              ],
              "false": []
            },
            "id": "dca1c3f4-da21-4381-a7ab-0750f23b7988"
          },
          {
            "command": "EVENT_ACTOR_HIDE",
            "args": {
              "actorId": "$self$",
              "__collapse": true
            },
            "id": "6ed3b84a-0c95-4afe-b92a-6e4ac0a55a5b"
          },
          {
            "command": "EVENT_ACTOR_COLLISIONS_DISABLE",
            "args": {
              "actorId": "$self$"
            },
            "id": "be053d7e-71c0-4185-b619-7dd626391fdd"
          }
        ],
        "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": "91415763-d391-49c4-8140-7e062216a8a0"
          }
        ]
      },
      "id": "7b254a9d-2733-40ec-8c22-42e366d7b66a"
    }
  ],
  "startScript": [
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "L0",
        "value": {
          "type": "number",
          "value": 10
        }
      },
      "id": "d2a56c2b-fc3a-46de-84c4-d8fd917e1e04"
    }
  ],
  "updateScript": [],
  "hit1Script": [],
  "hit2Script": [],
  "hit3Script": []
}