I'm trying to create some semi-random movement from enemies.
My enemies are have an 8-direction behavior (restricted to just 4 directions and Set Angle to no) and I'm trying to get them to move around fairly randomly.
What I've been doing so far is running an action every 3-7 seconds where it'll change the direction of the sprite.
This was working well previously when I was using a bullet behavior, but the sprite would then end up spinning around - which it shouldn't.
Using the 8-direction behaviour, how would I get my sprite to move up, down, left, or right?
I tried setting a random number every tick between 0 and 3, then choosing a direction based on that number every so often, but the sprite's direction would never change (I was trying to simulate a button press, but I have those disabled since this isn't the player character)
Any thoughts on this would be greatly appreciated.