Hello,
I'd like your opinions on whether or not this is a terrible idea.
So, I was working with some game objects and wanting them to fire off events when their particular timers ran out (in the demo I've linked below, they just do a grid move) and I was having some issues with multiple timers in a foreach object loop so I came up with the following solution:
1) each object has a timer variable that is reduced by 1xdt each tick
2) when the timer is equal or less than 0: Do something (ie move, call a function, reset the time, change a variable etc)
In the tests I've done, it seems to work pretty consistently so what I'm wondering is:
Is there a reason not to do this?
Like, is it going to cause some issue that I haven't thought of or cause bees to start pouring in from another dimension?
Anyway, here's a link to a capx that shows the method I am talking about.
Thanks!
https://www.dropbox.com/s/htnn44lqdyfhokk/dtTimerDemo.c3p?dl=0