Newer
Older
System38 / project / scenes / e02-01-trip / actors / actor_8.gbsres
{
  "_resourceType": "actor",
  "id": "fca06dfd-7489-47bf-8a08-938c42f9b4d8",
  "_index": 9,
  "symbol": "actor_10",
  "prefabId": "",
  "name": "",
  "x": 77,
  "y": 9,
  "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": "00af92f4-4fc8-4337-8fd6-98025cb5d74c",
      "command": "EVENT_CALL_CUSTOM_EVENT",
      "args": {
        "customEventId": "5c152eec-af22-4f4c-8893-1a8e1bac604b",
        "__name": "E02-Hit",
        "$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": [
    {
      "id": "8480f1c7-3e38-4964-ad95-fac6f187b0b0",
      "command": "EVENT_ACTOR_SET_MOVEMENT_SPEED",
      "args": {
        "actorId": "$self$",
        "speed": 0.5
      }
    }
  ],
  "updateScript": [
    {
      "id": "fe25c6b9-0c18-4923-9f99-6b8910695352",
      "command": "EVENT_ACTOR_MOVE_RELATIVE",
      "args": {
        "actorId": "$self$",
        "x": {
          "type": "number",
          "value": -8
        },
        "y": {
          "type": "number",
          "value": 2
        },
        "moveType": "diagonal",
        "useCollisions": false
      }
    },
    {
      "id": "67f29b20-9d81-4811-ae3b-d74c84b02fab",
      "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": []
}