# SetSkyParallax

Sky
5.1 OC
bool
int mode Scroll mode. 0 standard; 1 wind moves with the wind.
int xpar Horizontal parallaxity. With a value of 10 the sky is fixed to the landscape and thus appears to be on the same level as the landscape itself. Higher values will let the sky appear further away from the viewer.
int ypar Vertical parallaxity.
int xdir Constant horizontal motion of the sky.
int ydir Constant vertical motion of the sky.
int x X scroll position of the sky.
int y Y scroll position of the sky.
Changes parallaxity and scroll speed of the sky.
If you specify `nil` for one of the parameters or leave it out, the previous value will be kept.
SetSkyParallax(1, 20,20, 0,0, nil, nil);
Sets the sky to parallax and moving with the wind.
SetSkyParallax(0, nil, nil, 1);
Scrolls the sky constantly to the right, keeping the previously set parallaxity.
Newton
2011-07
Sven2
2002-04