ScratchData LogoScratchData
Back to linkplayer8026's profile

Function dt. Make a delta time game on Scratch

LIlinkplayer8026•Created September 30, 2024
Function dt. Make a delta time game on Scratch
1
1
4 views
View on Scratch

Instructions

want to make a game where everyone players it at the same speed despite their FPS being either 27, 30, 50, or 60, use this script to make everything move at the same rate. If you play in turbo mode, everything will work mostly fine until you jump, where you zoom Notes: It does not use the true dt function as nothing was able to read the dt variable, and there is a list of three previous dt values, makes sure that all the sprites read the first of three, and the list updates every 0.1 seconds plus 1-2 frames. This project is not inspired by the project by @Ricky-Jan. I thought of this before I saw theirs. The way I did it is more complex, however, it is much easier on the RAM of your device as the FPS is only updated every 0.1 seconds. I made this project because I am thinking of making one based on this type of movement. BTW it is intentional that you move slower on slopes, you move 1 speed point slower every 1 unit you have to climb per frame when you climb a slope.

Project Details

Project ID1074729334
CreatedSeptember 30, 2024
Last ModifiedOctober 4, 2024
SharedOctober 4, 2024
Visibilityvisible
CommentsAllowed