SetSkyParallax

Category: Sky
Since engine version: 1.0 OC

Description

Changes parallaxity and scroll speed of the sky.

Syntax

bool SetSkyParallax(int mode, int xpar, int ypar, int xdir, int ydir, int x, int y);

Parameters

mode:
Scroll mode. 0 standard; 1 wind moves with the wind.
xpar:
[opt] 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.
ypar:
[opt] Vertical parallaxity.
xdir:
[opt] Constant horizontal motion of the sky.
ydir:
[opt] Constant vertical motion of the sky.
x:
[opt] X scroll position of the sky.
y:
[opt] Y scroll position of the sky.

Remark

If you specify nil for one of the parameters or leave it out, the previous value will be kept.

Examples

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