• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM draw background with an hspeed

hello... i was wondering if i could do something like

Code:
s1=draw_background(background3, view_xview, view_yview);
s1.background_hspeed=1
i'm trying to make a sky and mountains, and for the sky, it will move on its own after drawing it...how can i do this without creating a separate entity and without setting it in the room?
 
P

Paolo Mazzon

Guest
Code:
// Create event
back = 0;

// Step event
if (back++ == width_of_background)
    back = 0

// Draw event
draw_background(background3, view_xview + back, view_yview);
 
P

Paolo Mazzon

Guest
The width in pixels of the background. But I did make a mistake, don't use draw_background, use draw_background_tiled (Same arguments).
 
Top