MCPcopy
hub / github.com/4ian/GDevelop / step

Method step

Extensions/TweenBehavior/TweenManager.ts:220–236  ·  view source on GitHub ↗

* Make all active tween step toward the end. * @param timeDelta the duration from the previous step in seconds * @param layoutTimeDelta the duration from the previous step ignoring layer time scale in seconds

()

Source from the content-addressed store, hash-verified

218 * @param layoutTimeDelta the duration from the previous step ignoring layer time scale in seconds
219 */
220 step(): void {
221 let writeIndex = 0;
222 for (
223 let readIndex = 0;
224 readIndex < this._activeTweens.length;
225 readIndex++
226 ) {
227 const tween = this._activeTweens[readIndex];
228
229 tween.step();
230 if (!tween.hasFinished()) {
231 this._activeTweens[writeIndex] = tween;
232 writeIndex++;
233 }
234 }
235 this._activeTweens.length = writeIndex;
236 }
237
238 /**
239 * Add a tween on one value.

Callers

nothing calls this directly

Calls 2

stepMethod · 0.65
hasFinishedMethod · 0.65

Tested by

no test coverage detected