background or tiled sprite

streng

Member
Hi currently using for backround parallax effect standard room editor background properties and to this time it was enough. Now, when I want to use shader on background, I facing with performace issues, because for parallax effects I use 9 diferent backround layers. Now I just thinking to use only one instance layer at the bottom with objet where i control all the backround logic like:(upraveno)
step: bck_0_x -= 0.85;
Draw: draw_sprite_tiled(sprite5, 1, bck_0_x, 0)
for the all 9 diferent layers, so in the end i will have 1 layer instead of 9 and one object which controll it all
the question is, can a face with soime trouble with this approach? Currently thinking only about , bck_0_x variable, it can have some strange nubers at the end of the level. for example "-19000"
is there a issue if i try to draw tilled image on so diferent coordinate out of my view?
Thanks for suggestions
 
Top