My AI works like that: Every 0 to 5 seconds (Do you think thats overpowered?), generate a random number between 1 and 20 and compare it to the AI of the animatronic, if the AI number is equal or greater than the rng, the square active for that specific animatronic moves to the next camera square (Causing it to move), unless they are being watched as i explained above. I also have a separate square (Watch square) that moves to which camera im viewing, and if that square is overlapping the camera where the animatronic is OR the next camera which the animatronic is supposed to move next, its AI is set to 0 so it never moves while being watched. In my fan game code, every animatronic has a square (Active) that changes position based on counters (AI), and when they are overlapping/not overlapping the camera squares (Actives), they appear/dissapear in these places (They move).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |