{ "_resourceType": "actorPrefab", "id": "aa85a6c2-7d1b-4e7c-b0ff-d029b9ec31b7", "name": "ScaredGhost", "frame": 0, "animate": false, "spriteSheetId": "b98bf956-914f-4ee1-b828-5202d3645f05", "moveSpeed": 0.7, "animSpeed": 255, "paletteId": "", "persistent": false, "collisionGroup": "1", "script": [ { "command": "EVENT_IF", "args": { "condition": { "type": "variable", "value": "0" }, "__collapseElse": false, "__collapse": false }, "children": { "true": [], "false": [ { "command": "EVENT_IF", "args": { "condition": { "type": "not", "value": { "type": "variable", "value": "2" } }, "__collapseElse": false }, "children": { "true": [ { "command": "EVENT_SET_VALUE", "args": { "variable": "2", "value": { "type": "true" } }, "id": "c7a2cd05-ebac-43fa-a8f8-6033b7eac076" }, { "command": "EVENT_DEC_VALUE", "args": { "variable": "1" }, "id": "0de306d4-ee05-40f5-ab6b-dfc314a6e3a6" }, { "command": "EVENT_CALL_CUSTOM_EVENT", "args": { "customEventId": "7a4a0afd-9a83-4ae5-aadd-c77ade95ae42", "$actor[1]$": "$self$" }, "id": "84b3142a-a8e4-4f7b-a6d9-f0c7f9d63fd7" }, { "command": "EVENT_CAMERA_SHAKE", "args": { "time": 0.5, "frames": 30, "shakeDirection": "horizontal", "magnitude": { "type": "number", "value": 5 } }, "id": "cd45a399-ba84-4508-8fc6-f000538e277a" }, { "command": "EVENT_WAIT", "args": { "time": 1.5, "frames": 30 }, "id": "26d8be52-732d-431e-a44d-38ef0e00f07a" }, { "command": "EVENT_SET_VALUE", "args": { "variable": "2", "value": { "type": "false" } }, "id": "1ac82b06-4087-459f-b8c8-bd84ffdf128d" } ], "false": [] }, "id": "498e75e6-afd2-4e88-95cb-cd4a08edeb61" } ] }, "id": "e04604c1-5fa6-431f-b98b-482348c69291" } ], "startScript": [], "updateScript": [ { "command": "EVENT_ACTOR_MOVE_TO", "args": { "actorId": "$self$", "x": { "type": "number", "value": 20 }, "y": { "type": "number", "value": 27 }, "moveType": "horizontal", "useCollisions": false, "__comment": true }, "id": "9afadcaa-4866-45e5-bfff-1b1e834e5673" }, { "command": "EVENT_WAIT", "args": { "time": 0.1, "frames": 30, "__comment": true, "__collapse": false, "units": "time" }, "id": "eb2e4942-3989-4b84-a9b5-e3b1273ce525" }, { "command": "EVENT_ACTOR_MOVE_TO", "args": { "actorId": "$self$", "x": { "type": "number", "value": 34 }, "y": { "type": "number", "value": 27 }, "moveType": "horizontal", "useCollisions": false, "__comment": true }, "id": "dc01463d-e84f-4e31-9aa7-a59dd3d1e0ce" }, { "command": "EVENT_WAIT", "args": { "time": 0.5, "frames": 16, "units": "frames", "__comment": true }, "id": "e4a26788-8a51-41fb-9861-d0d35d30d47f" }, { "command": "EVENT_CALL_CUSTOM_EVENT", "args": { "customEventId": "f47e8b8d-88c3-44ac-90c4-82b14473fb6d", "$variable[V0]$": { "type": "number", "value": 0 }, "$variable[V1]$": { "type": "number", "value": 0 }, "$variable[V2]$": { "type": "number", "value": 0 }, "__comment": false }, "id": "4d36d093-8af3-47ed-8ba4-9b8fba5f9a4b" } ], "hit1Script": [], "hit2Script": [], "hit3Script": [] }