Add things

This commit is contained in:
Anuken
2017-12-20 23:02:28 -05:00
parent 5a0140a2e2
commit f418d52160
6 changed files with 46 additions and 9 deletions

View File

@@ -206,7 +206,7 @@ public class Enemy extends DestructibleEntity{
float minv = 0.07f;
if(Math.abs(xvelocity) < minv && Math.abs(yvelocity) < minv && node > 0 && target == null){
if(Vector2.dst(xvelocity, yvelocity, 0, 0) < minv && node > 0 && target == null){
idletime += Timers.delta();
}else{
idletime = 0;