Quote from: Joe on Thu 26/06/2014 19:38:04
Sorry, today it's not my best day.
Of course your code solves the problem and, since you are the game creator, you will decide if that solution is good enough or not. I used the variable because I'm not the game creator and I don't know if your NPC will animate again at some point in the game alterating his loop so it won't be 8 anymore and the "if" condition will become useless.
That the only reason I'm using a boolean variable. But if the NPC is not animating anymore then that change might be a good (but not elegant) solution.
Thanks you very much for your explanation and your effort.
I have not explained well at all, english isn't my native lenguage. Sure i will use all this information in future, very usufull.
My best wishes for u.
Greeting
