Browse Source

Enemies (first v1)

Myval5773 3 months ago
parent
commit
1bc1ce3da7

+ 143 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/prefabs/actors/enemy_1.gbsres

@@ -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": []
+}

+ 19 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/prefabs/actors/enemy_2.gbsres

@@ -0,0 +1,19 @@
+{
+  "_resourceType": "actorPrefab",
+  "id": "b7dd2d81-2fc3-4743-ba67-9693ae891167",
+  "name": "Enemy 2",
+  "frame": 0,
+  "animate": false,
+  "spriteSheetId": "11b5452b-187c-43a3-afb1-a1f4f74ffda2",
+  "moveSpeed": 1,
+  "animSpeed": 15,
+  "paletteId": "",
+  "persistent": false,
+  "collisionGroup": "1",
+  "script": [],
+  "startScript": [],
+  "updateScript": [],
+  "hit1Script": [],
+  "hit2Script": [],
+  "hit3Script": []
+}

+ 17 - 2
INDPRO/Game/Silent Specter/SilentSpecter/project/scenes/maps/house/scene.gbsres

@@ -24,7 +24,7 @@
         ],
         "override": true,
         "__scriptTabs": "press",
-        "__collapse": false
+        "__collapse": true
       },
       "children": {
         "true": [
@@ -90,7 +90,8 @@
           "b"
         ],
         "override": true,
-        "__scriptTabs": "press"
+        "__scriptTabs": "press",
+        "__collapse": true
       },
       "children": {
         "true": [
@@ -104,6 +105,20 @@
         ]
       },
       "id": "9d1f4edb-d174-486e-b524-f7f8b37fa57f"
+    },
+    {
+      "command": "EVENT_GBVM_SCRIPT",
+      "args": {
+        "script": "VM_OVERLAY_SHOW 0,15,.UI_COLOR_BLACK, .UI_DRAW_FRAME;\nVM_LOAD_TEXT 1\n.dw VAR_BISINVISIBLE\n.asciz \"Invisibility : %d\"\nVM_DISPLAY_TEXT;",
+        "references": [
+          {
+            "type": "variable",
+            "id": "0"
+          }
+        ],
+        "__comment": true
+      },
+      "id": "96d33c6f-5598-451d-bf91-ff38bcdeb3b2"
     }
   ],
   "playerHit1Script": [],

BIN
INDPRO/Game/Silent Specter/~$lentSpecter_PATELLA_Valentin_INPRO2.docx