You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
app.ticker.add((delta)=>{// Add the time to our total elapsed timeelapsed+=delta;// Update the sprite's X position based on the cosine of our elapsed time. We divide// by 50 to slow the animation down a bit...sprite.x=100.0+Math.cos(elapsed/50.0)*100.0;});
I tried this code out, but it seems that the unit of delta in the code is neither seconds nor miliseconds. I measuerd the actual time between two ticks and the delta given by the function and their value seems to be 1 to 16 in ratio.
I think the documentation should clarify what unit the delta value is in, rather than using the vague term "time" to refer to the value.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the example code given by the documentation:
I tried this code out, but it seems that the unit of
delta
in the code is neither seconds nor miliseconds. I measuerd the actual time between two ticks and thedelta
given by the function and their value seems to be 1 to 16 in ratio.I think the documentation should clarify what unit the
delta
value is in, rather than using the vague term "time" to refer to the value.The text was updated successfully, but these errors were encountered: