ShakeViewport

Kategorie: Umwelt / Effekte
Ab Engineversion: 6.0 OC

Beschreibung

Shake the player viewports near the given position. This disorienting effect is used for earthquakes, explosions and other rumbling effects. The further away the player is from the source, the less his viewport is shaken. The strength falls off linearly by distance from 100% to 0% when the player is 700 pixels away.

Syntax

void ShakeViewport(int level, int x, int x);

Parameter

level:
The strength of the shake in pixels. As a point of reference, for explosions, the shake strength is the same as the explosion level.
x:
X offset in relative coordinates from the calling object.
x:
Y offset in relative coordinates from the calling object.
Siehe auch: SetViewOffset