From ac737283491dc259413897d91c6d4a157bab0744 Mon Sep 17 00:00:00 2001 From: Kenny <67985757+protofarer@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:39:20 -0400 Subject: [PATCH] Fix: scene-graph.md Render Order example Incorrect callback parameter. It is a Ticket object, not the delta time value itself. The example will not run without this fix. --- docs/guides/basics/scene-graph.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/basics/scene-graph.md b/docs/guides/basics/scene-graph.md index e0c237f11..dbac1b830 100644 --- a/docs/guides/basics/scene-graph.md +++ b/docs/guides/basics/scene-graph.md @@ -126,8 +126,8 @@ let d = addLetter('D', app.stage, 0xff8800, {x: 140, y: 100}); // Display them over time, in order let elapsed = 0.0; -app.ticker.add((delta) => { - elapsed += delta / 60.0; +app.ticker.add((ticker) => { + elapsed += ticker.deltaTime / 60.0; if (elapsed >= letters.length) { elapsed = 0.0; } for (let i = 0; i < letters.length; i ++) { letters[i].visible = elapsed >= i;