Quantcast
Channel: Questions in topic: "game over"
Browsing latest articles
Browse All 114 View Live

Final scene like a puzzle

Hello everyone :) I'm creating a game where player collecting objects - balls - C#. How could i make a final scene with some kind a puzzle statistics? On the end of the game one big ball is filling up...

View Article



Click a button, lose a life

I wanted to make a script where if I click a certain button then I lose a life. There would be 3 lives. Also when I run out of lives I want to load another level with a game over screen. Can anyone...

View Article

Play audio on game over GUI load or player death

Hi, I would like to play audio when a player dies/when the game over GUI appears. I am currently using the audio.Play(); command however it plays repeatedly despite disabling audio loop on the actual...

View Article

How do I add a game over screen on my Javascript?

So I have a Javascript for my player's health, the problem is when the character "dies", it goes on a blank screen, and I have to manually shut down the game. I want to set it up so that when I die it...

View Article

Making Game Over And Win Screen

Hello, I have been struggling with this fairly basic issue: To make a game over menu appear upon death, as well as making it so a menu is also displayed upon winning. I am making a 3D game in Unity,...

View Article


Cannot create game over parameter

I'm trying to create a condition in which the game throws a game over. The accessor/mutator I'm using is: public void SetGameOverState() { gameOverState += gameObj.gameOverVal; mValCheck =...

View Article

Help With Timer Before May 10th PLEASE!!!

I have a project due on May 10th. In my game I have a timer (text) that counts up infinitely. I want the time at the end of the scene when the player loses to stop and display on the game over scene. I...

View Article

Killzone Prefab not working?

Hi I'm trying to use the Killzone prefab to restart my scene when the player falls off a platform. My character goes through the collider and nothing happens? Does it need any additional code? also my...

View Article


game over screen

i need a game over screen on my game. but it says that game is over while i still playing the game. but when my life becomes zero then the "Game Over" text disappears. can you please help me on this....

View Article


game over script

im creating a word game where i have 3 lives then when life goes to zero a game over must appear on the screen. on the other hand, if you got the right answer you will proceed to the next level. how...

View Article

Hi there i´m new to unity. i have built a labyrinth with timer. how can i set...

Timer: using UnityEngine; using System.Collections; using UnityEngine.UI; public class Timer : MonoBehaviour { public Text counterText; public float seconds, minutes; // Use this for initialization...

View Article

Hi there i´m new to unity and like to solve a problem: i like to run the...

using UnityEngine; using System.Collections; using UnityEngine.UI; public class Timer : MonoBehaviour { public Text counterText; public float seconds, minutes; // Use this for initialization void Start...

View Article

Show picture when object is hit

I'm making a game in unity and it I want to make a picture/text show up when my character walks into a box. This is my code so far: using System.Collections; using UnityEngine; public class Winbox :...

View Article


How to pause stopwatch when player enters game over scene?

Hi I'm making a 2D platformer and I want to stop a stopwatch and still display the stopped time when the player loads into the scene "game over". The stopwatch is a text on a canvas that has...

View Article

End Game on trigger,End game screen appear on Trigger

How do i code something in C# that, when my character steps on to a cube he triggers an End game scene that also loads a main menu option. I have tried googling and unity forums, but nothing seems to...

View Article


Lose health and respawn after falling

I'm making a 2d platformer and I'm looking for something like the Shantae games where instead of having lives the player to falls off cliffs and loses a heart after respawning to the stage. I have the...

View Article

I wanted to make the game over if the player rotation is some value

its the game object that if he rotate on z the game ends

View Article


No pausing when game over occurs

Hello I have a pausing script whenever the game is disturbed public static bool isPaused; public GameObject pauseMenuUI; void Start() { isPaused = false; Time.timeScale = 1;...

View Article

Enabling/Disabling Canvas for Game Over Menu

Hello, I'm a musician at heart and programming is a major challenge for me. I've seen lots of posts on the forum about enabling/disabling a canvas (or I guess gameobject) to show a game over screen. I...

View Article

Game over when time reached

Hello, I wish to continue a script so that it will stop the time and game, when it reaches 15 mins, it start from 00:00 of game time. This is what I have so far. using UnityEngine.UI; using...

View Article

I was trying to make my game in unity but I got stuck while making "game...

https://we.tl/t-uzRSX676pW knife prefab is a trigger. when knife touches player, the game should stop but it is not stopping. i am using 2 C# scripts **movement.cs** using System.Collections; using...

View Article


Game Over help

So I've been following this unity tutorial (https://www.youtube.com/watch?v=VbZ9_C4-Qbo) to learn how to make a game over. I've mad an empty object, named it GameManager, and copied down his code. Yet...

View Article


Why is the level not properly working when I load it?

I’m having a problem with changing scenes in my Project. When I start from the main menu and press play to enter a level, the first time it plays fine, but when I pause the game and click to go back to...

View Article

How to respawn player game object after game over

Hi, I am trying to respawn the player after pressing the continue button and hiding the game over screen. Here is the code so far. using System.Collections; using System.Collections.Generic; using...

View Article

Game Over Canvas not showing

I think I messed something up. I'm pulling my hair out working on this. When the allotted time counts down and reaches zero, the TimeOver canvas does not show up. The same thing is happening to the...

View Article


Player Health and Damage on Collision with Enemy and Gamer Over Scene

I am making a game and I can't find a health script anywhere that works in my game can someone help?

View Article

How can I disable dontdestroyonload for only one scene?

So I am using Dialogue System for Unity and i need to disable dontdestroyonload for my game over screen but i want to keep it for the next level so i need dontdestroyonload for my second level but I...

View Article

,How to add Game Over and back to MainMenu

Can somebody help me with adding Game Over and returning to Main Menu to code? using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class Timer :...

View Article

button dont work when i came to the scene game over,button not work when i...

i have a in my game scene of game over and if i play the game from that scene the button of restart and main menu work fine and if the player die and the game came to the scene of game over the button...

View Article



Game over tutorial Flappy Bird not working,Game Over Screen won't work (unity...

I've been going through the Youtube-video the unity tutorial (https://www.youtube.com/watch?v=XtQMytORBmM) and I won't get the game over screen to show up. Is there something wrong with the code or are...

View Article
Browsing latest articles
Browse All 114 View Live




Latest Images