Hi all,
Im designing a simple action side scroller game, with enemy using state machine. I use alterable string state and change this string value when condition is met. My question is, i always has weird result since i know this state comparison method is too near to the "comparing two general values" trap.(Enemy01 State="Idle").Using ForEach when comparing the state yield better result. Can it be concluded that comparing general value is better done using loop?Im trying to grasp the concept here and hope it is not just a random luck.
Thanks