if(animindex ==0)
{
bugs = bugs + 1;
}
But when I clicked the ants, the bug count didnt increase at all, even when the ants had their dying twitch animation. So I changed it to
if(animindex ==1)
{
bugs = bugs + 1;
}
But this time, when I clicked, the bug count not only increased when the ants were walking, but it increased when they were twitching too. I also tried putting in this script,
if(animindex !=1)
{
bugs = bugs + 1;
}
But it had the same results as the first alteration I made. I also tried the opposite of this;
if(animindex!=0)
{
bugs = bugs + 1;
}
But it had just the same effect as the second alteration I made to the code. If anyone knows how to make the bugcount increase by 1, only when the ants animation is walking left, I'd be glad to know.
