• 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!

GameMaker Parallax backgrounds in gms2

Niels

Member
Hi all,
Ik kinda lost in GMS2''s new camera system.

Basicly I have a sky sprite that I want to move with the view.
And I have another sprite of mountains that move depending on player speed.
In GPS 1.4 I used view_wview and view_xview to set my background x position to...
What functions replaced these in gms2?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
camera_get_view_x and camera_get_view_y are the ones you need. Place the backgrounds on two separate layers in the room editor then use the layer_x and layer_y functions along with those camera ones to create the effect.
 
Top