random value variables. need help
Posted: Thu Sep 10, 2009 2:27 am
heya, sorry for the long absence. well anyway, I'm back.
my problem is this: I'm trying to develop a form of AI, and the way I was going to do it was I was going to give the actor an integer variable. I wanted the actor to do a random attack. so I set it to give the variable a random value, and that the actor would go through a specific animation depending on the value of the variable. the trouble is, the variable didn't seem to affect its animation. yes, it did change animation, but it only selected a particular one, and no matter how many times I opened the game, it would always be playing that same one in a loop. could someone give me some suggestions concerning AI and random actions?
my problem is this: I'm trying to develop a form of AI, and the way I was going to do it was I was going to give the actor an integer variable. I wanted the actor to do a random attack. so I set it to give the variable a random value, and that the actor would go through a specific animation depending on the value of the variable. the trouble is, the variable didn't seem to affect its animation. yes, it did change animation, but it only selected a particular one, and no matter how many times I opened the game, it would always be playing that same one in a loop. could someone give me some suggestions concerning AI and random actions?