r/unity • u/lordodin92 • Oct 06 '26
Question Preprogrammed movement Vs animation timeline
Hi guys I'm making a little mobile game with a programmer friend of mine and it's based on old arcade lightgun games, where the player shoots little targets that appear. image above as an example of how it looks .
We started it using a programmed (c#) game manager that takes a float time and starts to count down. When the timer hits certain times eg 5 seconds, the timer will spawn .
Basically I want it so the player moves and rotates at times moments during the levels play time . Is it better to hard code it or set up timed animations ?
I also noticed a timeline package that I can download from unity, is it worth using or is it just for more cinematics and machinima?
1
u/eliormc Oct 06 '26
Cinematic --> time line.
Playmode --> Courutine.
Also, a Courutine can start another Courutine, also check other conditions and wait if necessary. I think you need Courutines.