|
|
@@ -0,0 +1,143 @@
|
|
|
+{
|
|
|
+ "_resourceType": "actorPrefab",
|
|
|
+ "id": "aa85a6c2-7d1b-4e7c-b0ff-d029b9ec31b7",
|
|
|
+ "name": "Enemy 1",
|
|
|
+ "frame": 0,
|
|
|
+ "animate": false,
|
|
|
+ "spriteSheetId": "11b5452b-187c-43a3-afb1-a1f4f74ffda2",
|
|
|
+ "moveSpeed": 1,
|
|
|
+ "animSpeed": 15,
|
|
|
+ "paletteId": "",
|
|
|
+ "persistent": false,
|
|
|
+ "collisionGroup": "1",
|
|
|
+ "script": [],
|
|
|
+ "startScript": [],
|
|
|
+ "updateScript": [
|
|
|
+ {
|
|
|
+ "command": "EVENT_ACTOR_MOVE_TO",
|
|
|
+ "args": {
|
|
|
+ "actorId": "player",
|
|
|
+ "x": {
|
|
|
+ "type": "property",
|
|
|
+ "target": "player",
|
|
|
+ "property": "xpos"
|
|
|
+ },
|
|
|
+ "y": {
|
|
|
+ "type": "property",
|
|
|
+ "target": "player",
|
|
|
+ "property": "ypos"
|
|
|
+ },
|
|
|
+ "moveType": "horizontal",
|
|
|
+ "useCollisions": false,
|
|
|
+ "__collapse": false
|
|
|
+ },
|
|
|
+ "id": "1ab7d55c-5123-46fd-a007-ea58302f098d"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "command": "EVENT_IF_ACTOR_DIRECTION",
|
|
|
+ "args": {
|
|
|
+ "actorId": "$self$",
|
|
|
+ "direction": {
|
|
|
+ "type": "direction",
|
|
|
+ "value": "up"
|
|
|
+ },
|
|
|
+ "__collapseElse": false
|
|
|
+ },
|
|
|
+ "children": {
|
|
|
+ "true": [
|
|
|
+ {
|
|
|
+ "command": "EVENT_IF_ACTOR_DIRECTION",
|
|
|
+ "args": {
|
|
|
+ "actorId": "$self$",
|
|
|
+ "direction": {
|
|
|
+ "type": "direction",
|
|
|
+ "value": "up"
|
|
|
+ },
|
|
|
+ "__collapseElse": true
|
|
|
+ },
|
|
|
+ "children": {
|
|
|
+ "true": [
|
|
|
+ {
|
|
|
+ "command": "EVENT_ACTOR_PUSH",
|
|
|
+ "args": {
|
|
|
+ "continue": false
|
|
|
+ },
|
|
|
+ "id": "d9a61fd9-cf75-48d1-8251-4546e12fdcf2"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "false": []
|
|
|
+ },
|
|
|
+ "id": "a83d391a-1b8f-4d13-bb46-f4aee127bb15"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "command": "EVENT_ACTOR_MOVE_TO",
|
|
|
+ "args": {
|
|
|
+ "actorId": "$self$",
|
|
|
+ "x": {
|
|
|
+ "type": "abs",
|
|
|
+ "value": {
|
|
|
+ "type": "number",
|
|
|
+ "value": 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "y": {
|
|
|
+ "type": "number",
|
|
|
+ "value": 0
|
|
|
+ },
|
|
|
+ "moveType": "horizontal",
|
|
|
+ "useCollisions": false
|
|
|
+ },
|
|
|
+ "id": "08a378fa-709c-4718-867a-6e457f73fb7c"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "false": [
|
|
|
+ {
|
|
|
+ "command": "EVENT_IF_ACTOR_DIRECTION",
|
|
|
+ "args": {
|
|
|
+ "actorId": "$self$",
|
|
|
+ "direction": {
|
|
|
+ "type": "direction",
|
|
|
+ "value": "up"
|
|
|
+ },
|
|
|
+ "__collapseElse": true
|
|
|
+ },
|
|
|
+ "children": {
|
|
|
+ "true": [
|
|
|
+ {
|
|
|
+ "command": "EVENT_ACTOR_PUSH",
|
|
|
+ "args": {
|
|
|
+ "continue": false
|
|
|
+ },
|
|
|
+ "id": "ad3e97e1-b8c2-486c-838d-2f0ce7845503"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "false": []
|
|
|
+ },
|
|
|
+ "id": "9e57efc8-3bf3-4138-a0f6-d7713d63a2a6"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "command": "EVENT_ACTOR_MOVE_TO",
|
|
|
+ "args": {
|
|
|
+ "actorId": "$self$",
|
|
|
+ "x": {
|
|
|
+ "type": "number",
|
|
|
+ "value": 0
|
|
|
+ },
|
|
|
+ "y": {
|
|
|
+ "type": "number",
|
|
|
+ "value": 0
|
|
|
+ },
|
|
|
+ "moveType": "horizontal",
|
|
|
+ "useCollisions": false
|
|
|
+ },
|
|
|
+ "id": "173e6cf3-5cac-44a7-8a26-bce4e0e731a5"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "id": "4c248ab9-6f21-4b12-a3dd-eb502834343d"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "hit1Script": [],
|
|
|
+ "hit2Script": [],
|
|
|
+ "hit3Script": []
|
|
|
+}
|