MCPcopy Index your code
hub / github.com/4ian/GDevelop / getTweenLayerCameraPositionSetter

Function getTweenLayerCameraPositionSetter

Extensions/TweenBehavior/tweentools.ts:18–23  ·  view source on GitHub ↗
(layer: gdjs.RuntimeLayer)

Source from the content-addressed store, hash-verified

16 const tweenLayoutValueSetter = (value: float) => {};
17 const tweenLayerValueSetter = (value: float) => {};
18 const getTweenLayerCameraPositionSetter = (layer: gdjs.RuntimeLayer) => {
19 return ([x, y]: Array<float>) => {
20 layer.setCameraX(x);
21 layer.setCameraY(y);
22 };
23 };
24 const getTweenLayerCameraRotationSetter = (layer: gdjs.RuntimeLayer) => {
25 return (value: float) => layer.setCameraRotation(value);
26 };

Callers 2

tweenSetterFactoryFunction · 0.85
_tweenCameraFunction · 0.85

Calls 2

setCameraXMethod · 0.45
setCameraYMethod · 0.45

Tested by

no test coverage detected