mrdaneeyul
Member
Hey all! So I have an ongoing struggle with getting my character to move at a good diagonal speed. My resolution is 320x180, as I'm using 16x16 tiles--kinda like a widescreen GameBoy. Therefore, the player moves at 1px per frame when moving straight (this is top-down, like Zelda).
Unfortunately, diagonal movement is slower than straight movement. I've rounded this to a speed of 0.75, but the problem I keep running into is that this ends up being jerky/jittery because the sprite can't move between pixels.
I've done tons of research and have tried all kinds of solutions. Most just didn't work. Currently, I've got it "supersampling". The viewport is set to x4 (1280x720), while the camera is set to 320x160. This scales the game to create extra pixels in a sense, making 0.75 speed actually work.
The problem with this is that it's fairly intensive. I've barely got anything in the game, and when playing (through the GM "Play" button in the IDE), it will occasionally have a visible hitch in the frame rate (granted, this is on my laptop). Low FPS is 30, average is 60, and high is around 2000 when just walking around a test room.
Is there a solution to this? The old GameBoy games must have done it somehow. I just can't figure it out. Should I make all my assets x4? Then we run into resolution issues, since 720p doesn't scale well to 1080p. Is the IDE player just slow? I'm using GMS2 beta, but had the same problem in GM:S Pro. Can this be solved with surfaces somehow? I'd love to hear ideas.
Thanks!
Unfortunately, diagonal movement is slower than straight movement. I've rounded this to a speed of 0.75, but the problem I keep running into is that this ends up being jerky/jittery because the sprite can't move between pixels.
I've done tons of research and have tried all kinds of solutions. Most just didn't work. Currently, I've got it "supersampling". The viewport is set to x4 (1280x720), while the camera is set to 320x160. This scales the game to create extra pixels in a sense, making 0.75 speed actually work.
The problem with this is that it's fairly intensive. I've barely got anything in the game, and when playing (through the GM "Play" button in the IDE), it will occasionally have a visible hitch in the frame rate (granted, this is on my laptop). Low FPS is 30, average is 60, and high is around 2000 when just walking around a test room.
Is there a solution to this? The old GameBoy games must have done it somehow. I just can't figure it out. Should I make all my assets x4? Then we run into resolution issues, since 720p doesn't scale well to 1080p. Is the IDE player just slow? I'm using GMS2 beta, but had the same problem in GM:S Pro. Can this be solved with surfaces somehow? I'd love to hear ideas.
Thanks!
Last edited: