|Topic was automatically imported from the old Question2Answer platform.
So, i’ve been working on a game for my final exam (in june), and everything works just fine godot is great and many questions I had had already been answered by others. But now I’m stuck on random movement and every single answer that was given to others does not apply to me. Lemme explain.
Right now I have a mob who is on my map, when he sees player (using raycasting) he dashes quickly towards him, but when he doesn’t see the player, he isn’t much of a threat, what I want to do is have him move randomly on the map, while making sure it doesn’t get stuck / goes in circle and also that he is aware of the “walls”. I had some ideas about it but every answer is use randi() and I can’t figure out how to do it, it goes in one direction (down left) everytime and gets stuck, any idea ?
Thx in advance