u/Nigma1704

Need Help with Enemy Wandering Movement

I was following the Sara Spalding tutorial Action RPG episode 24 on youtube and got most of it to work however my enemy does not seem to move. In theory he should wander a random amount of space before he stops and picks a new direction to keep moving for awhile, rinse and repeat. I have been editing little bits and pieces and googling around but nobody seems to have an answer already posted

He plays the movement animation and rotates around like he is picking a new direction to try to move every few seconds but doesn't actually go anywhere. I am a super early beginner and am sure the solution is staring me in the face but how do I get the enemy to actually start walking around?

https://preview.redd.it/mdylkoxlf7kh1.png?width=1920&format=png&auto=webp&s=4c7d82c0e65f3a19fe25553b2d0e570bf2aad6b7

This is the script for the enemy wander state so everything that makes him move should be here. enemyspeed is set to 4 at the moment. same as the player character who is working fine.

reddit.com
u/Nigma1704 — 2 days ago