A
Alessio
Guest
Hi. I'm using the latest version of GM: Studio and i'm trying to make background scrolling but i have issues that are caused, i believe, by the current view position.
I use this code placed in a controller object' step event: background_x[1] = view_xview[0]*0.7
Which, alone, is fine for the purpose. But the way the view moves it's messy.
A problem i've seen with Game Maker is that, in a resolution like 256x240, while objects and backgrounds move fluidly (like in Shovel Knight, which i know it isn't Game Maker), the view doesn't it moves every pixel. And it gives display issues. But with the above code, even if the port on screen is equal to the view size, the background snaps back and forth.
Why does this happen? How would you fix that? I just can't find anything in the web, i've even looked at tutorials but they just don't seem to address this problem.
I wish YoYo could fix these things, anyway: because of the view that moves every pixel of the game resolution you just can't make a fluid game.
I use this code placed in a controller object' step event: background_x[1] = view_xview[0]*0.7
Which, alone, is fine for the purpose. But the way the view moves it's messy.
A problem i've seen with Game Maker is that, in a resolution like 256x240, while objects and backgrounds move fluidly (like in Shovel Knight, which i know it isn't Game Maker), the view doesn't it moves every pixel. And it gives display issues. But with the above code, even if the port on screen is equal to the view size, the background snaps back and forth.
Why does this happen? How would you fix that? I just can't find anything in the web, i've even looked at tutorials but they just don't seem to address this problem.
I wish YoYo could fix these things, anyway: because of the view that moves every pixel of the game resolution you just can't make a fluid game.