Make an enemy move around

so the monster is supposed to “bounce” off the wall?

No. If it is doing that for you adjust the timer length.

what is it supposed to do?

for me it just keeps moving past the wall

It’s supposed to stop at the wall.

The filters are way wrong and I would not use position +x or +y.
Take a close look and try this:
2020.05.27-20.28_02

2020.05.27-20.28_01

If you want it to bounce against the walls, try this and set the raycast Angle to 0, 180, 90, and 270. (and yes, the expression says -(A) )
2020.05.27-20.28

(same filter set up)
2020.05.27-20.28_01

It bounces off but it gets stuck at the top left corner. Is it because it is going forward and left is the monster’s forward?

Its because you have the switch going into A in the top expression,
only the random output goes into A.

I would also set all raycast to “Boss Arena” so its only looking for the walls.

it works but after a while, it doesn’t leave the top wall

never mind, it works. Thank you!

actually, it sometimes gets stuck on the top

That is the number randomization. For example, if it keeps on moving up, even when it’s on the walls, it looks like it’s staying still. A way to fix this is have the filter’s pass inputs go into the “new” for randomization.

ok thanks for the help!

No problem.