Is it possible to make it that enemies are on the overworld, but when they see you, they start running towards you?
I'm making an Earthbound-like game, so I want to make enemies on the overworld more like earthbound's. I've done it before, but
it didn't feel at all the same, it felt more like npc's wandering around and if you touch one, the battle starts.
Yup. Give the enemies sprite events, have them set to "approach player" or whatever, and set it so that when they touch the player, it initiates a battle. You can also set it so that when the battle is over, the sprite disappears.
That's exactly what I did. It seems really akward and not like Earthbound at all. I want it to be that it wanders around, if it sees you, an exclamation bubble pops up, its speed increases, and it runs towards you.
I'm not that new to Rpg Maker Vx Ace. I've been using it for at least a year now. I would like to know how to make enemies do the line-of-sight thing though.
There's actually a pretty easy way to implement this as I do it in one of my projects. Give me a few minutes and I'll edit this post and give you the answer. 🙂
Edit:
Add this script:
class Game_Interpreter def in_range?(range) sx = $game_map.events[@event_id].distance_x_from($game_player.x).abs sy = $game_map.events[@event_id].distance_y_from($game_player.y).abs sx + sy <= range endendThen on each of your mobs, have the first page set to parallel process, and add this script command:
if in_range?(4) == true $game_self_switch[[@map_id, @event_id, 'A']] = trueendHave page 2 with the conditional of self switch A == ON and autonomous movement to approach and event touch trigger and the regular event battle processing or whatever commands you'd normally run there.
Oh yeah, change the 4 to whatever range you want to enemy to detect you in.
I got it working by using the Yanfly Chase Script. It has everything I needed to use to make it like earthbound.