To add to that video posted by Scraggle, AppGameKit has its own command for calculating delta, GetFrameTime(). Very easy to use, the example in the video written in AGK
// Project: example
// Created: 2019-09-13
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "example" )
SetWindowSize( 600,600, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 600,600 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
sprite = CreateSprite(0)
SetSpriteSize(sprite,50,50)
setspritecolor(sprite,255,255,0,255) //yellow
SetSpritePosition(sprite,0,275)
dt as float
x as float = 0
speed as float = 120
do
dt = GetFrameTime()
inc x,speed * dt
if x >= 600 then x = -50 //wrap around screen
SetSpriteX(sprite,x)
Sync()
loop