Posts Tagged ‘random number generator’

Random # Generator AS3

Action Script 3

I recently  created a game that needed a random number generator. Searching the internet, I found many ways to create one. Some seemed overly complicated, but I came across this and it seems to work perfectly, at least for the application I used it in. What I was trying to do was create random behavior for the computer AI when fighting the human player. The way this works is I created a movie clip with all the monster’s animations for his different behaviors. so from from (more…)