Hey guys I need help on a game that I am helping to create. It requires me to have a sphere on a plane of which I need to instantiate. This sphere would appear in the center of the plane after 5 seconds. The sphere is also a prefab. This is what I have so far:
var timer;
Var Totalseconds;
function createtimer (timerID, Time) {
Timer
= document.getelementbyID(TimerID) ;
Totalseconds
= Time;
UpdateTimer ( )
window.settimeout(
“Tick()”, 1000) ;
}
function Tick ( ) {
TotalSeconds -= 1;
UpdateTimer ( )
window.settimeout ("Tick ()", 1000 ;
}
Function Tick ( ) {
if (Tpta;secpmds <= 0 {
// Trigger Function (Instantiation)
TotalSeconds -=1;
UpdateTimer ( )
Window.setTimeout ("Tick ( )", 1000) ;
}
//Timer Countdown on runtime, Object instantiates upon countdown completion as “tech demo”
Thank you very much to this community and anyone who can help.