Hi,
enemy = self.findNearestEnemy()
loop:
    if self.isReady("power-up"):
        self.powerUp()
    else:    
        self.attack(enemy)          
        self.attack(enemy)
Can somebody help me?
             
            
              
            
           
          
            
              
                Vlevo  
              
                  
                    March 20, 2015,  4:23pm
                   
                  2 
               
             
            
              you are setting enemy OUTside the loop…(so it never changes)
             
            
              1 Like 
            
            
           
          
            
            
              please edit your code like this
code
some more code
if you are looking for several enemies u have to find the enemy iside the loop.
there are several posts in this forum about the same problem… if you would have searched u would have found a reason…Try this… 
             
            
              
            
           
          
            
            
              @bmmtstb 
like this
is not very helpful. I contacted AdsmeGames how to do it properly. The easiest way to show this to someone in the future is to simply point them to the FAQ.
             
            
              1 Like 
            
            
           
          
            
              
                Feinty  
              
                  
                    March 22, 2015, 11:48pm
                   
                  5 
               
             
            
              Another quick problem is that you are not checking if an enemy exists before you attack it