T
TheTimmyBoy
Guest
Hello, I am making an RPG similar to the Mother series, and have run into a pretty big issue that I can't seem to figure out.
The game is isometric-overworld-based, and when an enemy in the overworld is run-into, you switch to a battle room resembling Mother, Dragonquest, etc. After winning the battle, the game is supposed to switch back to the overworld and have the objPlayer appear in the same location as he ran into the enemy, but with the enemy gone now, and everything else how it was before the fight.
Every time I complete a battle with enemy #1, the game correctly brings me back to the overworld in the correct location, however the game freezes, all other enemies previously on-screen are missing, music stops, and the game is frozen overall. The only thing still "moving" is other object idle animations, but I am unable to move my objPlayer and I have to close the current run. In another case with enemy #2, the same thing basically happens, but the enemies are back to their spawn points and move around normally, rather than not being there at all. In neither case does an error window appear, nor does anything show up in the compile/syntax error tabs.
I'm not sure what to put for what code I have, as I'm not sure what's causing this. I've checked a few things within the code for my player object, the enemy objects, and the battle codes, but nothing has changed with this issue when I alter code. I'm at a loss. I'm still sorta new at this and I don't really know how to use a debugger or if that could even help me. I do have the objPlayer set to persistent, as I'm not currently sure how to effectively move between rooms with multiple paths without this. No rooms are persistent.
If anyone is able to give a suggestion, it would be very much appreciated. If you need anything cleared up or want to see specific code please ask!
The game is isometric-overworld-based, and when an enemy in the overworld is run-into, you switch to a battle room resembling Mother, Dragonquest, etc. After winning the battle, the game is supposed to switch back to the overworld and have the objPlayer appear in the same location as he ran into the enemy, but with the enemy gone now, and everything else how it was before the fight.
Every time I complete a battle with enemy #1, the game correctly brings me back to the overworld in the correct location, however the game freezes, all other enemies previously on-screen are missing, music stops, and the game is frozen overall. The only thing still "moving" is other object idle animations, but I am unable to move my objPlayer and I have to close the current run. In another case with enemy #2, the same thing basically happens, but the enemies are back to their spawn points and move around normally, rather than not being there at all. In neither case does an error window appear, nor does anything show up in the compile/syntax error tabs.
I'm not sure what to put for what code I have, as I'm not sure what's causing this. I've checked a few things within the code for my player object, the enemy objects, and the battle codes, but nothing has changed with this issue when I alter code. I'm at a loss. I'm still sorta new at this and I don't really know how to use a debugger or if that could even help me. I do have the objPlayer set to persistent, as I'm not currently sure how to effectively move between rooms with multiple paths without this. No rooms are persistent.
If anyone is able to give a suggestion, it would be very much appreciated. If you need anything cleared up or want to see specific code please ask!
Last edited by a moderator: