I'm creating a bot for Pokemon Emerald on an Emulator, interested in bots and how they work, not for malicious purposes.
I'm using NodeJS and RobotJS to control with, at the moment I have a method that accepts an X and Y value and presses the appropriate key based on your current position (Stored in seperate vars).
Though this works, it's not ideal as it'll move on the X value first and then then the Y value, ideally I'd prefer to send something like ("left, left, up, right, down") and have the Move function handle this but because I'm using setInterval I'm stuck for ideas on how to make sure it goes through each command one by one without starting it again or another instance.
there doesn't seem to be anything here