Problem with velocity in sdl.1

am tring to make a fonction that moves pacman with sdl.1 it was tested and it works correctly but the problem that pacman moves very very fast i want to make it move slowly i find some tutorials about how to use timer and sdl_getticks sdl_delay but it doesn’t work :confused:
so am wondering how can i fix the problem and make it move slowly thnx for ur help :slight_smile:

A simple way would be to calculate the difference between SDL_GetTicks in one frame and the previous frame.

Therefore, you’ll need to check your ciode and get it to work!