{ "_resourceType": "actorPrefab", "id": "aa85a6c2-7d1b-4e7c-b0ff-d029b9ec31b7", "name": "ScaredGhost", "frame": 0, "animate": false, "spriteSheetId": "b98bf956-914f-4ee1-b828-5202d3645f05", "moveSpeed": 0.5, "animSpeed": 255, "paletteId": "", "persistent": true, "collisionGroup": "1", "script": [], "startScript": [], "updateScript": [ { "command": "EVENT_IF_ACTOR_DIRECTION", "args": { "actorId": "$self$", "direction": { "type": "direction", "value": "left" }, "__collapseElse": false }, "children": { "true": [ { "command": "EVENT_IF_ACTOR_DIRECTION", "args": { "actorId": "player", "direction": { "type": "direction", "value": "right" }, "__collapseElse": false, "__collapse": true }, "children": { "true": [ { "command": "EVENT_ACTOR_PUSH", "args": { "continue": true, "__collapse": false }, "id": "4232b47f-1516-4d50-ab3d-a3dc4dddd90c" } ], "false": [ { "command": "EVENT_ACTOR_MOVE_TO", "args": { "actorId": "$self$", "x": { "type": "property", "target": "player", "property": "xpos" }, "y": { "type": "property", "target": "player", "property": "ypos" }, "moveType": "horizontal", "useCollisions": true, "__collapse": true }, "id": "755b6143-ebb8-44a8-89ea-7f55bbc1dc7c" } ] }, "id": "f32e07bf-ee81-4801-920d-31d42e52c838" } ], "false": [ { "command": "EVENT_IF_ACTOR_DIRECTION", "args": { "actorId": "player", "direction": { "type": "direction", "value": "left" }, "__collapseElse": false, "__collapse": false }, "children": { "true": [ { "command": "EVENT_ACTOR_PUSH", "args": { "continue": true }, "id": "1a2ee7f5-d155-4206-bbb8-65b3191986c6" } ], "false": [ { "command": "EVENT_ACTOR_MOVE_TO", "args": { "actorId": "$self$", "x": { "type": "property", "target": "player", "property": "xpos" }, "y": { "type": "property", "target": "player", "property": "ypos" }, "moveType": "horizontal", "useCollisions": true }, "id": "8734042c-7911-4290-8f06-5c230b12b3ad" } ] }, "id": "d8ea875a-f010-46b7-ba05-3433eaf6debc" } ] }, "id": "2c237aed-fdfe-432d-b536-ff84d56b4500" } ], "hit1Script": [], "hit2Script": [], "hit3Script": [] }