S
Sdrex
Guest
Hello,
I'm new to the forums and have been using Game maker studio 2 for some time now,
I am sorry if this is the wrong board, or if I put the wrong prefix to this thread...
In a project I am working on, I am using a fixed image as background which scrolls downward as you progress through the game, the problem with this is that no matter what speed i set the scrolling, when the image scrolls a tick down, the game does something horrific (like it tries to redraw everything and "lags" a little in doing so, the effect is increased as you increase the speed and decreases but never truly disappears...)
I tried a lot of things (surely not everything, or I would have probably solved this ) but with no results...
To obtain the scrolling, I followed a tutorial which had me use two scripts in the game controller object, which are:
and
I'm sorry if this was already asked and answered, I did a search on this for a long time, but all solutions seems to not work with this issue...
Thanks for your kind replies,
Best regards.
I'm new to the forums and have been using Game maker studio 2 for some time now,
I am sorry if this is the wrong board, or if I put the wrong prefix to this thread...
In a project I am working on, I am using a fixed image as background which scrolls downward as you progress through the game, the problem with this is that no matter what speed i set the scrolling, when the image scrolls a tick down, the game does something horrific (like it tries to redraw everything and "lags" a little in doing so, the effect is increased as you increase the speed and decreases but never truly disappears...)
I tried a lot of things (surely not everything, or I would have probably solved this ) but with no results...
To obtain the scrolling, I followed a tutorial which had me use two scripts in the game controller object, which are:
GML:
var _cam_x = camera_get_view_x(view_camera[0]) ;
layer_x("Background", _cam_x * 0.25);
GML:
var lay_id = layer_get_id("Background");
var back_id = layer_background_get_id(lay_id);
layer_background_vtiled(back_id, true);
Thanks for your kind replies,
Best regards.