Discuss Scratch

happyzakk
Scratcher
5 posts

how do i make a fnaf animatronic ai?

how do i make an fnaf animatronic ai to go to a room to try to find the player? i really need help with my project, five nights at freddy's unnkown.
i need some script of how to make an animatronic move through rooms.
awesome-llama
Scratcher
1000+ posts

how do i make a fnaf animatronic ai?

When I made my fnaf inspired game, I used a variable for each enemy. This variable changes by 1 or -1 over a period of time. Each room has a different number. The animatronic starting location is 1, 2-6 are extra locations, and 7 is the player's location.
The-Nick-of-Time
Scratcher
100+ posts

how do i make a fnaf animatronic ai?

The above technique works well, I've used it; but if you want cameras, you'll need some extra scripting.

Each camera must be its own sprite, with different costumes to show who is there and who is not. To do this, simply put the following in each camera:

whenIreceiveStart Gameforeveriflocationvariableasseeninabovepost=The number assigned to said camerathenswitchcostumetoSomeone's there!elseswitchcostumetoNo one's there!

Last edited by The-Nick-of-Time (Nov. 29, 2016 21:47:58)

happyzakk
Scratcher
5 posts

how do i make a fnaf animatronic ai?

thanks, I'll try to make it work!
whenclickedseteveryone that helpedtoawesome

Last edited by happyzakk (Nov. 29, 2016 23:56:40)

brendansmetak
Scratcher
43 posts

how do i make a fnaf animatronic ai?

Go ahead and use my A.I code and give me credit [removed]. https://scratch.mit.edu/projects/73205562/
also at the 6 am spirite is how to get a cloud server of days btw

Please be respectful

Last edited by Harakou (April 14, 2018 19:44:06)

Powered by DjangoBB