Android Spawn Enemies by time
<p>I am developing a game that increases its level by time. Also increases the number of enemies that's spawned, however, i don't really know exactly where to put the codes of updating my enemies.</p>

<p>And I'm having problems in using the time as my reference, I created a Time class where it stores the beginTime(System.currenttimemillis) and timediff(System.currenttimemillis-beginTime), and I instantiate them in my thread class, so it will get the current time state of the game, however, when I am using it in my gamepanel class specifically in the update method, when comparing the value it is storing, it ignores the condition even though it has a value.</p>

<pre><code>if(time.getTimeDiff()==3000){
    enemy.update();
}
</code></pre>

<p>the game should start after 3 secs, but if I put the condition, no enemy will come even though I set 1 dummy.</p>

<p>i will really appreaciate it if somebody can clearly explain me everything.</p>
