I'm making a FNaF spinoff, and I want to make it so each animatronic moves through their corresponding paths (I've rendered pictures to emulate movement, every time they move they appear on another camera). But I don't want them to move through each place every fixed time, I want it to be random.
So something like
Every X seconds
"Animatronic has 1/4 chance to move to next room"
And then afterwards they reach the office and stay there for a bit (unless the animatronic plays a jumpscare, in which case the game will end), they need to do the same thing, but backwards. And then forwards again until it ends.
Can anyone help?
Develop games in your browser. Powerful, performant & highly capable.
To create a 1/4 chance you could use choose(1,0,0,0)
So give the animatronic an instance variable move
every x seconds
> animatronic set variable move = choose(1,0,0,0)
> animatronic move to next room.