Ver Fonte

Fixed Respawning logic

Myval5773 há 3 semanas atrás
pai
commit
fce8c99789

BIN
INDPRO/Game/Silent Specter/SilentSpecter/assets/backgrounds/DeathScreen1.png


BIN
INDPRO/Game/Silent Specter/SilentSpecter/assets/backgrounds/DeathScreen2.png


+ 12 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/backgrounds/deathscreen.gbsres

@@ -0,0 +1,12 @@
+{
+  "_resourceType": "background",
+  "id": "3eb89187-d112-4bff-9352-f696e784e5ee",
+  "name": "DeathScreen",
+  "symbol": "bg_deathscreen",
+  "width": 20,
+  "height": 18,
+  "imageWidth": 160,
+  "imageHeight": 144,
+  "filename": "DeathScreen.png",
+  "tileColors": ""
+}

+ 12 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/backgrounds/deathscreen1.gbsres

@@ -0,0 +1,12 @@
+{
+  "_resourceType": "background",
+  "id": "0d25f0c8-d40d-437b-b208-cd2c25a2de8a",
+  "name": "DeathScreen1",
+  "symbol": "bg_deathscreen1",
+  "width": 20,
+  "height": 18,
+  "imageWidth": 160,
+  "imageHeight": 144,
+  "filename": "DeathScreen1.png",
+  "tileColors": ""
+}

+ 12 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/backgrounds/deathscreen2.gbsres

@@ -0,0 +1,12 @@
+{
+  "_resourceType": "background",
+  "id": "8c30597a-bae1-4c78-985a-f734a4789567",
+  "name": "DeathScreen2",
+  "symbol": "bg_deathscreen2",
+  "width": 20,
+  "height": 18,
+  "imageWidth": 160,
+  "imageHeight": 144,
+  "filename": "DeathScreen2.png",
+  "tileColors": ""
+}

+ 1 - 1
INDPRO/Game/Silent Specter/SilentSpecter/project/engine_field_values.gbsres

@@ -23,7 +23,7 @@
     },
     {
       "id": "plat_camera_block",
-      "value": 3
+      "value": 0
     },
     {
       "id": "INPUT_PLATFORM_JUMP",

+ 0 - 53
INDPRO/Game/Silent Specter/SilentSpecter/project/prefabs/actors/ghost2.gbsres

@@ -1,53 +0,0 @@
-{
-  "_resourceType": "actorPrefab",
-  "id": "d0a385dc-9544-4ea3-8bf4-ca0eadd6793f",
-  "name": "Ghost2",
-  "frame": 0,
-  "animate": false,
-  "spriteSheetId": "581d34d0-9591-4e6e-a609-1d94f203b0cd",
-  "moveSpeed": 0.5,
-  "animSpeed": 255,
-  "paletteId": "",
-  "persistent": false,
-  "collisionGroup": "2",
-  "script": [
-    {
-      "command": "EVENT_ACTOR_EFFECTS",
-      "args": {
-        "effect": "flicker",
-        "actorId": "$self$",
-        "distance": 20,
-        "speed": 2,
-        "time": 0.5,
-        "frames": 30
-      },
-      "id": "841e503e-6d3f-4687-ada5-37ca6692d788"
-    }
-  ],
-  "startScript": [
-    {
-      "command": "EVENT_SET_TIMER_SCRIPT",
-      "args": {
-        "timer": 1,
-        "duration": 0.5,
-        "frames": 30,
-        "__scriptTabs": "end",
-        "__collapse": false
-      },
-      "children": {
-        "script": [
-          {
-            "command": "EVENT_CALL_CUSTOM_EVENT",
-            "args": {},
-            "id": "f5f4c729-4760-4c96-af02-bea5d10d1f4f"
-          }
-        ]
-      },
-      "id": "620ea4b7-6ad4-49c1-a456-ffe69cea4ab4"
-    }
-  ],
-  "updateScript": [],
-  "hit1Script": [],
-  "hit2Script": [],
-  "hit3Script": []
-}

+ 91 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/scenes/death_screen/scene.gbsres

@@ -0,0 +1,91 @@
+{
+  "_resourceType": "scene",
+  "id": "109b536c-3d08-4a9e-9487-50cfcb47dace",
+  "_index": 2,
+  "name": "Death Screen",
+  "backgroundId": "8c30597a-bae1-4c78-985a-f734a4789567",
+  "tilesetId": "",
+  "width": 20,
+  "height": 18,
+  "type": "PLATFORM",
+  "paletteIds": [],
+  "spritePaletteIds": [],
+  "collisions": "",
+  "autoFadeSpeed": 1,
+  "symbol": "scene_3",
+  "x": 1432,
+  "y": 424,
+  "script": [
+    {
+      "command": "EVENT_ACTOR_DEACTIVATE",
+      "args": {
+        "actorId": "$self$"
+      },
+      "id": "ec9adceb-a922-4752-a204-6b99a4461b1a"
+    },
+    {
+      "command": "EVENT_SET_INPUT_SCRIPT",
+      "args": {
+        "input": [
+          "a"
+        ],
+        "override": true,
+        "__scriptTabs": "press"
+      },
+      "children": {
+        "true": [
+          {
+            "command": "EVENT_SWITCH_SCENE",
+            "args": {
+              "sceneId": "72c1e8e4-0697-4feb-b262-0ece9c3af457",
+              "x": {
+                "type": "number",
+                "value": 0
+              },
+              "y": {
+                "type": "number",
+                "value": 61
+              },
+              "direction": "right",
+              "fadeSpeed": "2"
+            },
+            "id": "55a68e17-873d-487c-b73b-830731205186"
+          },
+          {
+            "command": "EVENT_SET_VALUE",
+            "args": {
+              "variable": "1",
+              "value": {
+                "type": "number",
+                "value": 4
+              }
+            },
+            "id": "5a237f36-7338-4906-b45f-696430c5fd10"
+          },
+          {
+            "command": "EVENT_ACTOR_COLLISIONS_ENABLE",
+            "args": {
+              "actorId": "$self$"
+            },
+            "id": "80eeee57-dc8d-4550-9f8f-495fa720ad09"
+          }
+        ]
+      },
+      "id": "4daab566-669d-4ccd-a192-5bebb4dc2890"
+    },
+    {
+      "command": "EVENT_SET_VALUE",
+      "args": {
+        "variable": "2",
+        "value": {
+          "type": "false"
+        }
+      },
+      "id": "d00133e6-bf31-4e31-85b9-66c26c0d5690"
+    }
+  ],
+  "playerHit1Script": [],
+  "playerHit2Script": [],
+  "playerHit3Script": [],
+  "playerSpriteSheetId": "6ae2f141-7f1a-4ec8-af30-445db4e3ebac"
+}

+ 6 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/scenes/house/actors/actor_4.gbsres

@@ -45,6 +45,12 @@
       "args": {
         "$actor[1]$": "54ee1eeb-48b4-4c17-8133-23abb014cff7"
       }
+    },
+    "620a4951-6d9a-4ce9-834e-75711fd0cee4": {
+      "id": "620a4951-6d9a-4ce9-834e-75711fd0cee4",
+      "args": {
+        "variable": "2"
+      }
     }
   },
   "symbol": "actor_3",

+ 3 - 3
INDPRO/Game/Silent Specter/SilentSpecter/project/scenes/house/actors/hud_ghost.gbsres

@@ -10,7 +10,7 @@
   "moveSpeed": 1,
   "animSpeed": 15,
   "paletteId": "",
-  "isPinned": false,
+  "isPinned": true,
   "persistent": false,
   "collisionGroup": "",
   "prefabScriptOverrides": {
@@ -37,7 +37,7 @@
   "hit1Script": [],
   "hit2Script": [],
   "hit3Script": [],
-  "x": 2,
-  "y": 2,
+  "x": 0,
+  "y": 1,
   "_index": 5
 }

+ 8 - 1
INDPRO/Game/Silent Specter/SilentSpecter/project/scenes/house/scene.gbsres

@@ -83,7 +83,7 @@
           "value": 4
         }
       },
-      "id": "8b0dbf84-b3b1-4a09-9871-7b22686a388a"
+      "id": "39eca761-e4c5-4bc0-8633-1bc6baadbe3f"
     },
     {
       "command": "EVENT_CALL_CUSTOM_EVENT",
@@ -92,6 +92,13 @@
         "$actor[1]$": "54ee1eeb-48b4-4c17-8133-23abb014cff7"
       },
       "id": "061a6a1b-602e-4dfe-b091-13057e7a11fd"
+    },
+    {
+      "command": "EVENT_ACTOR_COLLISIONS_ENABLE",
+      "args": {
+        "actorId": "$self$"
+      },
+      "id": "b0501c34-3807-42b3-a16c-e2de0a532826"
     }
   ],
   "playerHit1Script": [],

+ 27 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/scenes/shop/actors/actor.gbsres

@@ -0,0 +1,27 @@
+{
+  "_resourceType": "actor",
+  "id": "0b36a899-95e7-42cd-be05-96cb2f5b9697",
+  "name": "",
+  "frame": 0,
+  "animate": false,
+  "spriteSheetId": "581d34d0-9591-4e6e-a609-1d94f203b0cd",
+  "prefabId": "7e7b528f-2d4a-41aa-9a9a-277b076b109d",
+  "direction": "down",
+  "moveSpeed": 1,
+  "animSpeed": 15,
+  "paletteId": "",
+  "isPinned": true,
+  "persistent": false,
+  "collisionGroup": "",
+  "prefabScriptOverrides": {},
+  "symbol": "actor_6",
+  "script": [],
+  "startScript": [],
+  "updateScript": [],
+  "hit1Script": [],
+  "hit2Script": [],
+  "hit3Script": [],
+  "x": 0,
+  "y": 1,
+  "_index": 0
+}

+ 17 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/scripts/update_hud_(health).gbsres

@@ -111,6 +111,23 @@
               "actorId": "1"
             },
             "id": "36da6fa1-07da-4f5e-9f72-b09466149ad3"
+          },
+          {
+            "command": "EVENT_SWITCH_SCENE",
+            "args": {
+              "sceneId": "109b536c-3d08-4a9e-9487-50cfcb47dace",
+              "x": {
+                "type": "number",
+                "value": 0
+              },
+              "y": {
+                "type": "number",
+                "value": 17
+              },
+              "direction": "right",
+              "fadeSpeed": 2
+            },
+            "id": "44e8a3c3-d343-46bb-bd79-c7ba394a5b51"
           }
         ],
         "true5": [],

+ 5 - 0
INDPRO/Game/Silent Specter/SilentSpecter/project/variables.gbsres

@@ -30,6 +30,11 @@
       "id": "2",
       "name": "bIsHit",
       "symbol": "var_bishit"
+    },
+    {
+      "id": "109b536c-3d08-4a9e-9487-50cfcb47dace__L0",
+      "name": "Local 0",
+      "symbol": "var_local_0"
     }
   ]
 }