How do I make a series of events happen w/ random times...

Get help using Construct 2

Post » Mon Apr 20, 2015 6:46 pm

...inbetween them?

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?
Posts: 73
Reputation: 521

Post » Mon Apr 20, 2015 7:47 pm

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
- for each animatronic
> animatronic set variable move = choose(1,0,0,0)
- animatronic compare variable move = 1
> animatronic move to next room.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: satrio05, thewisetree and 8 guests