I don't understand what you are saying about the animation can you please explain more I am a little dumb. Also check if the vec_dist is being reached.


place at top of action
Code:
var test_var =0;




modify this if()
Code:
if (vec_dist(my.x,player1.x) <= 100)
  { ogre_active = -1; 
    test_var =vec_dist(my.x,player1.x);
    
  }DEBUG_VAR(test_var,10);



If test_var is never greater then 0 that could be the problem.
It's a little confusing reading the code so I have to help trouble shoot and yes I do not right now know what is wrong or how to fix it. I am thinking it might be the size of the two entities bboxes

EDIT* or maybe after the c_scan you doen't == player1 you can test this to

Code:
if(you == player1)
{ 
   test_var = 1;
}
else
{ 
   test_var = 0;
} 
 DEBUG_VAR(test_var,10);



EDIT moved DEBUG_VAR() out of the if() in second code block

EDIT one last note - and I could be wrong - but I don't think setting ANM_CYCLE actually modifies the value in the percent_var. I think it just ignores the 3rd digit place so 599 and 199 are viewed simply as 99. So resetting the value of the percent_var should be done or you could end up with a var out of range after long game play.

Code:
my.attack_percentage += 3*time_step;
my.attack_percentage %= 100;


Please correct me if I am wrong because I'd really like to know this information for sure.

Last edited by Malice; 06/21/13 20:55.