joyrider
Active Member
Thanks GunPei2X
Fusion,
Y scrolling doesn't work in that test version, however i think i got the y scrolling fixed and also the calculation for the start (Y) position of the 2nd layer. I tried it in a few (test) levels and it seems to work. The X layer scrolling (with the Y button) doesn't reset the position of the layer like it should at least not in my current test version. Yeah the disapearing layer 2 background are those 8 pixels but the layer can be wider then 320 pixels so 336 pixels is ok SDL handles the clipping for me so that's great i don't have to think about that
The X start position will depend where the player (and thus viewport) starts for example if the player is all the way to the right the layer will start there, but that shouldn't be a problem since the layer is repeated horizontally What if the layer doesn't ge reset horizontally ? i mean if u play a level and the layer starts on the last X Position from the previous level that's how its working now. not sure if it'll still be the same when with reseting X position after scrolling with the Y button.
I'll post a new Exe (only) when i got the X position thingie worked out
Fusion,
Y scrolling doesn't work in that test version, however i think i got the y scrolling fixed and also the calculation for the start (Y) position of the 2nd layer. I tried it in a few (test) levels and it seems to work. The X layer scrolling (with the Y button) doesn't reset the position of the layer like it should at least not in my current test version. Yeah the disapearing layer 2 background are those 8 pixels but the layer can be wider then 320 pixels so 336 pixels is ok SDL handles the clipping for me so that's great i don't have to think about that
The X start position will depend where the player (and thus viewport) starts for example if the player is all the way to the right the layer will start there, but that shouldn't be a problem since the layer is repeated horizontally What if the layer doesn't ge reset horizontally ? i mean if u play a level and the layer starts on the last X Position from the previous level that's how its working now. not sure if it'll still be the same when with reseting X position after scrolling with the Y button.
I'll post a new Exe (only) when i got the X position thingie worked out