Newer
Older
System38 / project / scenes / e02-01-trip / actors / actor_3.gbsres
{
  "_resourceType": "actor",
  "id": "32dc158b-e879-4026-973b-179f194f88f5",
  "_index": 4,
  "symbol": "actor_5",
  "prefabId": "",
  "name": "",
  "x": 122,
  "y": 13,
  "frame": 0,
  "animate": false,
  "spriteSheetId": "bda8d9c2-79b8-4b21-b985-a622d36cadc4",
  "paletteId": "default-bg-4",
  "direction": "down",
  "moveSpeed": 1,
  "animSpeed": 255,
  "isPinned": false,
  "persistent": false,
  "collisionGroup": "1",
  "prefabScriptOverrides": {},
  "script": [
    {
      "id": "dd88126b-0eac-4d2b-a83a-7e0ec6bbdd20",
      "command": "EVENT_CALL_CUSTOM_EVENT",
      "args": {
        "customEventId": "7cc45a56-1343-4913-8a16-b5bd92d112b7",
        "__name": "E02-Cat-Hit"
      },
      "children": {
        "script": [
          {
            "id": "d7e9f0ec-0dc7-42e3-90f6-65ce4bab7b31",
            "command": "EVENT_ACTOR_SET_FRAME",
            "args": {
              "actorId": "0",
              "frame": {
                "type": "number",
                "value": 2
              }
            }
          },
          {
            "id": "e529cffc-ccc0-4682-a664-10d82fffafde",
            "command": "EVENT_ACTOR_COLLISIONS_DISABLE",
            "args": {
              "actorId": "0"
            }
          }
        ]
      }
    },
    {
      "id": "1829e555-1d99-480c-92a2-8a207b46dbeb",
      "command": "EVENT_CALL_CUSTOM_EVENT",
      "args": {
        "customEventId": "5c152eec-af22-4f4c-8893-1a8e1bac604b",
        "__name": "E02-Hit",
        "$actor[0]$": "91ebdf85-43ae-4e96-9b93-3164b43fa1c0",
        "$variable[V0]$": {
          "type": "variable",
          "value": "0"
        }
      },
      "children": {
        "script": [
          {
            "id": "7a36522e-609d-4848-ae2d-3c37dae875d6",
            "command": "EVENT_INC_VALUE",
            "args": {
              "variable": "V0"
            }
          },
          {
            "id": "bbb3ca29-5688-4b15-b9a7-365a82f35df2",
            "command": "EVENT_SOUND_PLAY_EFFECT",
            "args": {
              "type": "crash",
              "pitch": 4,
              "frequency": 200,
              "duration": 0.5,
              "wait": false
            }
          },
          {
            "id": "30bdcce6-fbee-4463-b57c-f58e3dd21c28",
            "command": "EVENT_CAMERA_SHAKE",
            "args": {
              "time": 0.5,
              "shakeDirection": "horizontal",
              "magnitude": {
                "type": "number",
                "value": 5
              }
            }
          },
          {
            "id": "d89a837f-9109-4f89-b0ea-468316a3b91c",
            "command": "EVENT_IF",
            "args": {
              "variable": "V0",
              "operator": ">=",
              "comparator": 3,
              "__collapseElse": false,
              "condition": {
                "type": "gte",
                "valueA": {
                  "type": "variable",
                  "value": "V0"
                },
                "valueB": {
                  "type": "number",
                  "value": 3
                }
              }
            },
            "children": {
              "true": [
                {
                  "id": "3257072e-aec0-42c3-a117-d4acc2401308",
                  "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": "4d39eb74-bf5b-49dd-bcec-af1c829f973b",
                  "command": "EVENT_ACTOR_SET_FRAME",
                  "args": {
                    "actorId": "0",
                    "frame": {
                      "type": "variable",
                      "value": "V0"
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ],
  "startScript": [],
  "updateScript": [],
  "hit1Script": [
    {
      "id": "ff9614dd-ddfb-4439-91a2-3432c97f2c0d",
      "command": "EVENT_CALL_CUSTOM_EVENT",
      "args": {
        "customEventId": "b02fc0d1-670f-426c-ac5d-f02c76ce4cfc",
        "__name": "E02-Cat-Run"
      },
      "children": {
        "script": [
          {
            "id": "b25e7ab8-3bad-4eab-95e6-1501f05c4f3f",
            "command": "EVENT_ACTOR_SET_FRAME",
            "args": {
              "actorId": "0",
              "frame": {
                "type": "number",
                "value": 1
              }
            }
          },
          {
            "id": "14c22747-5cdb-41b3-854d-0dc84b25c441",
            "command": "EVENT_ACTOR_MOVE_RELATIVE",
            "args": {
              "actorId": "0",
              "x": {
                "type": "number",
                "value": 0
              },
              "y": {
                "type": "number",
                "value": 5
              },
              "moveType": "vertical",
              "useCollisions": false
            }
          },
          {
            "id": "bd03971c-0225-4caf-a898-22eb515844bd",
            "command": "EVENT_ACTOR_SET_FRAME",
            "args": {
              "actorId": "0",
              "frame": {
                "type": "number",
                "value": 0
              }
            }
          },
          {
            "id": "dc4e55e1-a83e-45f2-826f-8e252f8358a6",
            "command": "EVENT_ACTOR_EMOTE",
            "args": {
              "actorId": "0",
              "emoteId": "16caa25d-70a0-466b-ac2c-9bf324c3c34b"
            }
          }
        ]
      }
    }
  ],
  "hit2Script": [],
  "hit3Script": []
}