Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Enemy units run to the right and to the bottom of the map

A topic by Mike2227 created 46 days ago Views: 244 Replies: 4
Viewing posts 1 to 5

Hey, so I got this plugin like a day or two ago and I tried setting up some enemy units. However I noticed if they aren't in attack range of a unit they should be chasing, they just travel to the right of the board without fail. I tried setting the "Visual Range (Auto)" value to very high numbers 100-1,000 and they still can't seem to move towards my characters or even in a random direction. Putting them on hunter, fearful or even friendly doesn't help either. Nothing I try seems to work. Is this the intended behavior and if not how do i fix it?

Developer

Thank you for reporting, I'll check this out

For some additional notes for my investigation: I also noticed it seems to be happening in the demo attached as well. If you move the units out of attack range and change the player spawn points to the left of the board, they will all run to the right even if their visual range is set high. My guess is something is causing their visual range to be set to the default of 1 even though the plugin is being set higher in RPG Maker MZ. 

That's my best guess since the hunters also don't seem to care about their allies position as well. They clump up even though your code seems to indicate that they should be avoiding being near allies as well as chasing enemies. I would assume the default 1 visual range may be causing them to not notice either enemies or allies. I'm not sure why this would cause them to run specifically to the right every time but that's my current best guess.

Thanks for looking into this. I may post here a few times if I uncover anything as well.

Developer

Let me know if this issue still occurs as of v1.7.5

I just checked it out now and it looks like it is working properly. Thank you for updating that so quickly!