Newer
Older
System38 / project / scenes / e02-01-trip / actors / actor_14.gbsres
{
  "_resourceType": "actor",
  "id": "5acf6d26-d0ed-46de-abcf-f868fdd1b89c",
  "_index": 15,
  "symbol": "actor_16",
  "prefabId": "",
  "name": "",
  "x": 103,
  "y": 14,
  "frame": 0,
  "animate": false,
  "spriteSheetId": "a1e626f5-4810-4574-93da-6682e00edf0d",
  "paletteId": "",
  "direction": "left",
  "moveSpeed": 1,
  "animSpeed": 15,
  "isPinned": false,
  "persistent": false,
  "collisionGroup": "1",
  "prefabScriptOverrides": {},
  "script": [
    {
      "id": "072ad077-399a-4ff7-995d-32e86d104689",
      "command": "EVENT_CALL_CUSTOM_EVENT",
      "args": {
        "customEventId": "5c152eec-af22-4f4c-8893-1a8e1bac604b",
        "__name": "E02-Hit",
        "$variable[V0]$": {
          "type": "variable",
          "value": "0"
        }
      },
      "children": {
        "script": [
          {
            "id": "a95ede51-4d11-4457-93b4-85728b3c4703",
            "command": "EVENT_INC_VALUE",
            "args": {
              "variable": "0"
            }
          },
          {
            "id": "e3924c3a-0e80-4ea0-b33c-b9141c495bd4",
            "command": "EVENT_SOUND_PLAY_EFFECT",
            "args": {
              "type": "crash",
              "pitch": 4,
              "frequency": 200,
              "duration": 0.5,
              "wait": false
            }
          },
          {
            "id": "dde4a7c4-0547-4810-a36e-5d5a5a321bfc",
            "command": "EVENT_CAMERA_SHAKE",
            "args": {
              "time": 0.5,
              "shakeDirection": "horizontal",
              "magnitude": {
                "type": "number",
                "value": 5
              }
            }
          },
          {
            "id": "82942fb1-aab8-4aa2-a2dd-d71181c2df59",
            "command": "EVENT_IF",
            "args": {
              "variable": "0",
              "operator": ">=",
              "comparator": 3,
              "__collapseElse": false,
              "condition": {
                "type": "gte",
                "valueA": {
                  "type": "variable",
                  "value": "0"
                },
                "valueB": {
                  "type": "number",
                  "value": 3
                }
              }
            },
            "children": {
              "true": [
                {
                  "id": "86d8e86e-50c1-41c9-a878-9fa13332126a",
                  "command": "EVENT_SWITCH_SCENE",
                  "args": {
                    "sceneId": "b58d19d1-d109-45aa-985f-639a948cbae7",
                    "x": {
                      "type": "number",
                      "value": 0
                    },
                    "y": {
                      "type": "number",
                      "value": 0
                    },
                    "direction": "",
                    "fadeSpeed": "2"
                  }
                }
              ],
              "false": [
                {
                  "id": "331864c6-3667-4a61-950c-7aaa1322efa6",
                  "command": "EVENT_ACTOR_SET_FRAME",
                  "args": {
                    "actorId": "0",
                    "frame": {
                      "type": "variable",
                      "value": "0"
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ],
  "startScript": [
    {
      "id": "d2a36de0-6e43-4ce4-81ba-792ad2c0f6fe",
      "command": "EVENT_ACTOR_SET_MOVEMENT_SPEED",
      "args": {
        "actorId": "$self$",
        "speed": 0.5
      }
    }
  ],
  "updateScript": [
    {
      "id": "b4102e5c-7594-437b-926a-1861f5695d9d",
      "command": "EVENT_ACTOR_MOVE_RELATIVE",
      "args": {
        "actorId": "$self$",
        "x": {
          "type": "number",
          "value": -20
        },
        "y": {
          "type": "number",
          "value": 0
        },
        "moveType": "horizontal",
        "useCollisions": false
      }
    }
  ],
  "hit1Script": [],
  "hit2Script": [],
  "hit3Script": []
}