Try something like this. In this demo the triangle will try and get the mouse. If you pretend the mouse is a checkpoint and the triangle is a car you can use the same logic in your game.
rem In this demo the sprite will chase the mouse around.
rem Setup Demo.
sync on
sync rate 60
color backdrop 0
rem Make a triangle sprite image
line 0,20,5,0
line 5,0,10,20
line 10,20,0,20
get image 1,0,0,10,20
rem Make the sprite start at the center of the screen.
x=320
y=240
rem Begin Loop
do
rem Create the sprite
sprite 1,x,y,1
rem Get the mouse's position
mx=mousex()
my=mousey()
rem Calculate the sprite's angle. Why y-my instead of my-y? Because in 2D DarkBasic when you increase the Y value the coordinate goes down the screen instead of up.
ANGLE=Atanfull( mx-x , y-my )
rem Rotate the sprite
rotate sprite 1,ANGLE
rem Move the sprite
move sprite 1,5
rem Get the Sprite's new X and Y position
x=sprite x(1)
y=sprite y(1)
rem Refresh Screen
sync
loop
Hope this helps