Hello everyone hope you are all having a good day.
So for my game i really want to have visual encounters, a faceless sprite just resting somewhere on the map (maps as in routes like pokemon) and if you enter a specific area it will start to target you and chase you and when it touches you it starts a battle.
after the battle if you win id just want the sprite to die and preferably for it to respawn after a set amount of time, but im okay with it respawning when you re enter the area again. i also dont mind it chasing the player through the entire map however a way to block the enemy from going any further would be nice. i also want the enemy to return to its waiting state when you re-enter an area even if when you left it was still chasing. When you run away from the enemy id want the enemy to take a step back and wait for a couple frames before continueing its chase only giving up once you leave the area.
Ive already tried multiple things so far the one i like most but is very flawed is a script made by someone i know.
the issues i have with it is that the respawning completely doesnt work, the enemy will aggro you instantly when it respawns and theres no way of it just returning to its waiting state. once it sees you it will be permanently stuck in its aggro phase. and i feel like the detection system could definetly be optimised too.
The second one is one i found from a thread on here but it doesnt really work very well either, it was one for mv so maybe that is why
the main issue here is that it only moves when you are in its area, and then it just starts moving at random leading to it moving out of its own area, where it just becomes a wandering sprite, you can bump into it and nothing happens. and i feel like i want it to chase you further than just the trigger area, and without the random movement it will just sit on the edge of the trigger area waiting for you to get in wich looks incredibly unrealistic. not to mention the extremely buggy hitboxes where i often just walk through the enemy without anything happening or a delayed battle. it usually keeps the hitbox on the tile where the enemy last was wich just feels really unresponsive. i did try to add a bit of code myself trying to fix the whole static sprite thing wandering around but it still looks very buggy. not to mention that im pretty sure you have to create 3 variables for every single enemy you wanna make wich is not something im excited for
if anyone could help me improve one of these two events id REALLY apriciate it as im kind of at a loss since theres barely any visual encounter help i can find online.
thank you in advance.
So for my game i really want to have visual encounters, a faceless sprite just resting somewhere on the map (maps as in routes like pokemon) and if you enter a specific area it will start to target you and chase you and when it touches you it starts a battle.
after the battle if you win id just want the sprite to die and preferably for it to respawn after a set amount of time, but im okay with it respawning when you re enter the area again. i also dont mind it chasing the player through the entire map however a way to block the enemy from going any further would be nice. i also want the enemy to return to its waiting state when you re-enter an area even if when you left it was still chasing. When you run away from the enemy id want the enemy to take a step back and wait for a couple frames before continueing its chase only giving up once you leave the area.
Ive already tried multiple things so far the one i like most but is very flawed is a script made by someone i know.
the issues i have with it is that the respawning completely doesnt work, the enemy will aggro you instantly when it respawns and theres no way of it just returning to its waiting state. once it sees you it will be permanently stuck in its aggro phase. and i feel like the detection system could definetly be optimised too.
The second one is one i found from a thread on here but it doesnt really work very well either, it was one for mv so maybe that is why
the main issue here is that it only moves when you are in its area, and then it just starts moving at random leading to it moving out of its own area, where it just becomes a wandering sprite, you can bump into it and nothing happens. and i feel like i want it to chase you further than just the trigger area, and without the random movement it will just sit on the edge of the trigger area waiting for you to get in wich looks incredibly unrealistic. not to mention the extremely buggy hitboxes where i often just walk through the enemy without anything happening or a delayed battle. it usually keeps the hitbox on the tile where the enemy last was wich just feels really unresponsive. i did try to add a bit of code myself trying to fix the whole static sprite thing wandering around but it still looks very buggy. not to mention that im pretty sure you have to create 3 variables for every single enemy you wanna make wich is not something im excited for
if anyone could help me improve one of these two events id REALLY apriciate it as im kind of at a loss since theres barely any visual encounter help i can find online.
thank you in advance.