Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Random or Looping
lllDash Offline
Member

Posts: 108
Threads: 12
Joined: Apr 2012
Reputation: 3
#3
RE: Random or Looping

Thanks narutohokager. I feel like an idiot. It never occurred to me that, in order to make the lightning loop, I would have to create a literal loop in the script itself. With that knowledge, I found a shorter way of doing it which would make it easier to create variations with just a single line of code.




AddTimer("", 0.1f, "flashSequence"); //loop start
}
void flashSequence(string &in asTimer)
{
AddTimer("", 5.0f, "flashes"); //I can add as many of these as I want Tongue
AddTimer("", 10.0f, "flashLoop");
}
void flashLoop(string &in asTimer)

{
AddTimer("", 0.1f, "flashSequence"); //loop end
}



Thanks again. Big Grin
04-27-2012, 11:10 PM
Find


Messages In This Thread
Random or Looping - by lllDash - 04-27-2012, 09:43 PM
RE: Random or Looping - by narutohokager - 04-27-2012, 10:02 PM
RE: Random or Looping - by lllDash - 04-27-2012, 11:10 PM
RE: Random or Looping - by narutohokager - 04-28-2012, 12:23 AM



Users browsing this thread: 1 Guest(s)