- Home /
Time Based Shooter
Hey guys im making a game where you have to shoot three rigid body targets as soon as possible in order to get high score. Ive also put a one minute time limit within the game. However I have no idea what else to do to the script. Any ideas? here is my script so far
#pragma strict
var countdownClock : int = 60;
var ZombieCyrus : Rigidbody;
var ZombieBeiber : Rigidbody;
var ZombiePatterson : Rigidbody;
function Start () {
TickAwayTime();
}
function Update () {
}
function OnGUI () {
GUI.Label (Rect (10, 10, 100, 20), "Timer ()");
}
function TickAwayTime()
{
for(var i=0; i<countdownClock; i++)
{
yield WaitForSeconds(1);
countdownClock = countdownClock - 1;
Debug.Log("Timer reads as "+countdownClock);
}
}
Have you done anything else apart from the above code? Is there any script for instantiating the targets? Is there any shooting script? And whot about script related to hitting targets with your bullets?
If none of them exists yet, then the best you can do is to watch/read some official and unofficial docs, videos and tutorials. There are plenty of them (just google). After a week or two you should be able to implement base of your game without any problem. And in case when a specific issue arises, please post here and we'll try to help you.
Your answer
Follow this Question
Related Questions
Add to score every second 3 Answers
GUITime and Score issue. 0 Answers
How to convert 00:40:00.0 to float 2 Answers
dart board scoring system 1 Answer
I need help for delete old highscore 0 Answers