-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manual Content: delta_time() example should not use hardcoded microseconds value #8700
Comments
The example is "correct," but it lacks context. In a 60 fps game, the manual example resolves to Your example resolves to Ideally the manual should explain both. |
It be simpler to simply have a hard-coded standard value. I've been using globals like these: global.microSecond = 1000000.0; There should probably be some standard variables, like micro_second = 1000000.0; It's arguable that there should be a micro_second_per_step, as well, which is just returning game_get_speed(gamespeed_microseconds). It's just syntactic sugar, though. For most games, this value's set once and only once, but it gets tricky when you're doing things like time warping, etc. |
…nds value YoYoGames/GameMaker-Bugs#8700 * Changed the code example to use game_get_speed(gamespeed_microseconds) and clarified that the base speed should also be expressed in pixels per step * Small changes to game_get_speed() page
…onds value YoYoGames/GameMaker-Bugs#8700 * Added a second example that explains how the original example can be used with a base speed in pixels per second * Tiny fixes on the "speed" function page
Changed the ratio |
Description
The manual's example of delta time is incorrect and will confuse users not used to programming with delta time in mind.
Expected Change
The example should be corrected to:
Manual Link
https://manual.gamemaker.io/monthly/en/#t=GameMaker_Language%2FGML_Reference%2FMaths_And_Numbers%2FDate_And_Time%2Fdelta_time.htm
Which version of GameMaker are you reporting this issue for?
IDE v2024.8.1.171 Runtime v2024.8.1.218
Which operating system(s) are you seeing the problem on?
Windows 10.0.19045.0
ba0f23b0-fb20-46d3-bf0c-301c6a91b8cb
The text was updated successfully, but these errors were encountered: