You can do the following:
enemySpeed = speed you set for the enemy.
finalSpeed = speed with the delta_time
delta_time = time between one frame and another
33333.33333 = interval of time between one frame and another based on game with 30fps
This last value you can set based on the amount of fps you are making your game. It is only divide 1000000 by amount of fps.
Example with a game made based on 30 fps:
1000000 / 30 = 33333.33333...
Formule to set the speed in your game:
finalSpeed = enemySpeed * (delta_time / 33333.33333)
If by chance the pc of the person playing your game is bad and run at 20 fps. The following will happen:
finalSpeed = enemySpeed * (50000 / 33333.33333)
finalSpeed = enemySpeed * (1.5)
- Assuming the speed you set for the enemy is 10.
finalSpeed = 10 * 1.5
finalSpeed = 15
Notice that there is a compensation, so even on a bad computer, the enemy will walk the same amount.
The opposite will happen if the person has a very good computer that causes the game to run with more fps.
I used my GameMaker knowledge as a reference.
Complementing:
15 * 20 (fps) = 300 units traveled
10 * 30 (fps) = 300 units traveled