A
Anti-Icarus
Guest
I'm having a problem with room transitions in a game I've been working on. First, I place a controller object in a room and programmed the End Step event so that it would go to the next room upon pressing the Enter key. I duplicated that room and the controller object with minor adjustments to the two so that it would do the exact same thing, except go straight into the game upon entering the third room. Just last night, I was able to go to a third room upon pressing the Enter key twice. But today, I get stuck in the second room. I haven't done anything wrong that would cause this problem. All I did today was create a new object, add a bit of extra code for my player character, and placed the new object in the third room I would be going to. I'm sure this was not the cause of the problem.
The code I have written for the End Step events of the two controller objects in the first two rooms went like this:
var progress = keyboard_check_pressed(vk_enter);
if (progress)
{
room_goto(rm_controls [and rm_House_of_Worship]);
}
But I have changed that code to look like this when the problem started:
if (keyboard_check_pressed(vk_enter))
{
room_goto(rm_controls [and rm_House_of_Worship]);
}
So far, nothings changed. Now what could be causing the End Step of the second room's controller object to stop working? Now, I noticed two suspicious things during my runs. The first thing was that every time I get stuck in the second room where the Enter key stopped working and closing out the build, the buttons that runs the game and debugs it have been blocked out. The second thing was that according to the compile log, the game is still entering the main loop even though it's been closed out. It's as if Game Maker thinks that the game is still running and the game somehow got stuck compiling the data during the loading process.
The code I have written for the End Step events of the two controller objects in the first two rooms went like this:
var progress = keyboard_check_pressed(vk_enter);
if (progress)
{
room_goto(rm_controls [and rm_House_of_Worship]);
}
But I have changed that code to look like this when the problem started:
if (keyboard_check_pressed(vk_enter))
{
room_goto(rm_controls [and rm_House_of_Worship]);
}
So far, nothings changed. Now what could be causing the End Step of the second room's controller object to stop working? Now, I noticed two suspicious things during my runs. The first thing was that every time I get stuck in the second room where the Enter key stopped working and closing out the build, the buttons that runs the game and debugs it have been blocked out. The second thing was that according to the compile log, the game is still entering the main loop even though it's been closed out. It's as if Game Maker thinks that the game is still running and the game somehow got stuck compiling the data during the loading process.
Attachments
-
157.4 KB Views: 7