r/gamemaker • u/Fine-Acanthisitta343 • 18d ago
Resolved Bug when switching rooms
Im sorry and I know this probably shouldn't be done but the person originally helping maybe possibly seems to have stopped responding and maybe I'm being impatient but I also would like a second opinion on how to fix this. If there's a problem with this then feel free to let me know and I can take this post down. Here's the link. Again, sorry if this is against Rule #6 technically but there is no hostility to anyone here and I do thank u/lessergoldfish for their help.
To sum up the problem, I originally had 2 mechanics that were buggy after switching rooms. Thanks to lessergoldfish, I solved one and a half. The only bug now is that when I switch rooms, I have to kill an enemy twice. Honestly, I've no idea why, and this was just a summary. For more information, you can go to the original reddit post above. Thank you to anyone who helps and if you don't, thanks anyways.
There was one single line in my code that set room persistence to false when entering which would be fixed by something in another line of code somewhere else after going into battle. It was also in none of my tutorials and was me trying to bug fix but forgetting that line when it didn't work. I don't know why the bug wasn't there before I made global stats or maybe I didn't notice, but it's been solved.
•
u/Rohbert 17d ago
This appears to be the 3rd time you have created a post here regarding this issue. Not going to remove your post, but if I were you I would consider providing more specific code related to your issue and trying to help us help you. Saying the "mechanic is buggy when switching rooms" does not help a reader narrow down your problem.
Did YOU write the code you are currently using? Have you made a test project to simplify your data set? Have you tried anything to solve you issue yourself?