Is there a way to destroy an entity after a predefined time limit exceeds.? I want to destroy a ship when it's lifetime(measured in seconds) exceeds. thanks.
Asked
Active
Viewed 90 times
1 Answers
0
OK I found something, the delta value we get as a parameter in update method is the time (in miliseconds) passed since the last call to update method. so we can keep adding it to a variable until the life limit reach.

Sudheera
- 1,727
- 1
- 12
- 28