Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by TAPgiles

I would use a signal generator to generate random values from 0 to 1--one for X and one for Z. Wire them into a combiner in "3 numbers" mode. Wire that fat wire into a signal manipulator, and from there into the mover's direction input.

This will constantly change the direction to a random one.

Now, wire the collision detection into a NOT gate, and from there into the sig-manip's freeze. So while colliding with something it will pick a random direction to move in every frame. While not colliding with something it will stick with the same direction.

Now, to get it to pick a random direction at the start, you'll probably want to have the NOT gate off for a frame, to allow the randomisation happen. So add a switch that's on, through a sig-manip in custom remapper mode, invert the output graph (there's a button for that), turn it onto the "pulse at on" edge mode. This will pulse at on, but send out a 0 for the pulse and a 1 from then on. So the NOT gate will be off for 1 frame and then on from then on.

Hope some of that made sense XD

Oh dear! Your browser is either unsupported or there has been a problem loading the page.