tylorlilley
Member
Hey there,
I originally posted this in the tech support forms here but am reposting it based on advice I was given in that thread here in the programming section.
I have used GameMaker in the past but recently upgraded to GM Studio 2 to try it out. I have imported a project I had from 1.4 and overall it seems to work just fine, but something really weird is happening when I transition rooms. Whenever I move to a new room it first displays the PREVIOUS frame for a split second. This makes it look like the character jumps back for a minute before popping into the next room. At first I thought it was a position glitch or something but after trying out some more things like having moving enemies on screen it looks like they all pop back to where they were at the start of the frame as well. I have searched online and not found anyone talking about something like this... does anyone have any idea where I can even start with troubleshooting or fixing this?
You can see in the above example the way it pops the character back down to where they were in the previous frame after touching the stairs but before transitioning to the next room. At first I thought it was just an issue with the stairs but it turns out this happens no matter what triggers the room transition, and not just the stairs. In fact, I went ahead and recreated this issue in a brand new project using only the bare minimum of two objects and two rooms and you can see the same thing happening. This is me only holding the right arrow key to move steadily right and on the frame where it would overlap the transition object it instead appears to skip to the left before transitioning as if it had overlapped, just like in my real project above.
I tried compiling with HTML 5 instead of macOS and the version of this test project in the browser does not seem to have this issue. I also tried exporting a macOS exe and that one DID still have this issue. Unfortunately I can't get YYC working on either of these projects so I can only test with VM. Can someone help me understand what could be causing this even in a brand new project? The new project only has the following code in it:
Thanks in advance!
I originally posted this in the tech support forms here but am reposting it based on advice I was given in that thread here in the programming section.
I have used GameMaker in the past but recently upgraded to GM Studio 2 to try it out. I have imported a project I had from 1.4 and overall it seems to work just fine, but something really weird is happening when I transition rooms. Whenever I move to a new room it first displays the PREVIOUS frame for a split second. This makes it look like the character jumps back for a minute before popping into the next room. At first I thought it was a position glitch or something but after trying out some more things like having moving enemies on screen it looks like they all pop back to where they were at the start of the frame as well. I have searched online and not found anyone talking about something like this... does anyone have any idea where I can even start with troubleshooting or fixing this?
You can see in the above example the way it pops the character back down to where they were in the previous frame after touching the stairs but before transitioning to the next room. At first I thought it was just an issue with the stairs but it turns out this happens no matter what triggers the room transition, and not just the stairs. In fact, I went ahead and recreated this issue in a brand new project using only the bare minimum of two objects and two rooms and you can see the same thing happening. This is me only holding the right arrow key to move steadily right and on the frame where it would overlap the transition object it instead appears to skip to the left before transitioning as if it had overlapped, just like in my real project above.
I tried compiling with HTML 5 instead of macOS and the version of this test project in the browser does not seem to have this issue. I also tried exporting a macOS exe and that one DID still have this issue. Unfortunately I can't get YYC working on either of these projects so I can only test with VM. Can someone help me understand what could be causing this even in a brand new project? The new project only has the following code in it:
GML:
// obj_player create event
image_blend = c_red;
game_set_speed(10, gamespeed_fps);
depth = -1;
// obj_player step event
if (keyboard_check(vk_right)) { x += 4; }
var transition = instance_place(x, y, obj_transition)
if (transition and transition.x == x and transition.y == y) { room_goto_next(); }