As shown in the video, changing the resolution also changes how long it takes to make the enemies reach the edge and turn around. How would you make it so that no matter the resolution, the enemies will always take the exact same amount of time to reach the edges. As if this type of game was made with changeable resolutions, wouldn’t playing it in different resolutions change the difficulty? I hope you understand what I meant.
That’s what the Time.deltaTime accomplishes. I didn’t change my code from the video and when I play with the resolution, they still take the same time to get to the edges. Did you not include the Time.deltaTime in your move right and move left statements?