KamilSeven
Member
[POST-EDIT]
The issue (solved) in this thread was about smooth movement (subpixel movement) in low-resolution games.
[POST-EDIT/END]
Hi!
I want to have a parallax scrolling background for a single screen game with GM:S 1.4. The exact same effect is buildings bg. in Super Crate Box by Vlambeer. I've already checked some of the tutorials and threads on the topic. But most of them were about side-scrolling games.
I have tried using,
But depending on the speed, background eighter so fast or so jittery (like pixel by pixel not fluid).
My room size is 240x160px.
Example:
Like I said, I'm trying to figure out the buildings bg. (moves depending on the player's position) not the clouds.
The issue (solved) in this thread was about smooth movement (subpixel movement) in low-resolution games.
[POST-EDIT/END]
Hi!
I want to have a parallax scrolling background for a single screen game with GM:S 1.4. The exact same effect is buildings bg. in Super Crate Box by Vlambeer. I've already checked some of the tutorials and threads on the topic. But most of them were about side-scrolling games.
I have tried using,
Code:
background_x[0] = lerp(0, -obj_player.x, 0.2);
My room size is 240x160px.
Example:
Last edited: