Godot Version
4.6
Question
I’m trying to recreate the battle mechanics from the PS1 game Parasite Eve for reference. I’ve managed to do a lot of the coding myself so far, but I’ve gotten very stuck on how to approach making a “turn-based” enemy selection, where I can select 1 enemy to target, using the arrow keys to switch through the possible targets.
I currently use a system that instantiates 1-3 enemies when in-battle, and then you can pause the game when a bar is filled to select a target. However I’ve found it difficult to be able to get the enemy amount (as it is added to the main scene tree and not there by default) and then instantiate the target UI when the game is paused (to show which one you’ve selected) and then individually “attack” it. I hope my explanation makes sense. Most videos and forum posts seemed to have only concerned selecting things with a mouse click instead of going through some kind of array of points, where depending which arrow key you press goes through the array leftmost or rightmost, or the selection is very different from what I’m curious about.