SetSkyParallax

Category: Sky
Since engine version: 4.9.1.0 GWE

Description

Changes parallaxity and scroll speed of the sky.

Syntax

void SetSkyParallax (int iMode, int iParX, int iParY, int iXDir, int iYDir, int iX, int iY);

Parameters

iMode:
Scroll mode. 0 standard; 1 wind moves with the wind.
iParX:
Horizontal parallaxity. At value 10 the sky is linked to the landscape; at higher values the sky will be parallax to the landscape; at 0 the previous value is kept.
iParY:
Vertical parallaxity
iXDir:
Constant horizontal motion of the sky
iYDir:
Constant vertical motion of the sky
iX:
X scroll position of the sky
iY:
Y scroll position of the sky

Remark

If you specify SkyPar_Keep() for one of the parameters, the previously set value will be kept.

Example

SetSkyParallax(1, 20,20, 0,0, SkyPar_Keep(),SkyPar_Keep());
Sets the sky to parallax and moving with the wind.
See also: SkyPar_Keep
Sven2, April 2002