Hello, im following a tutorial off youtube: "The ultimate introduction to pygame", in my code a sky, ground and snail are blitted onto the screen, then the snail is moved along the x axis, my problem is the snail is not moving slowly, even at lower frame rates, my computer is powerful enough to run this so i dont know why this is happening, any resources you may need to test my code are attached, thanks.
import pygame
from sys import exit
pygame.init()
screen = pygame.display.set_mode((800,400))
pygame.display.set_caption('Runner')
clock = pygame.time.Clock()
test_font = pygame.font.Font('font\Pixeltype.ttf',50)
sky_surface = pygame.image.load('graphics\Sky.png')
ground_surface = pygame.image.load('graphics\ground.png')
text_surface = test_font.render('My game',False,'Black')
snail_surface = pygame.image.load('graphics\snail\snail1.png')
snail_x_pos = 600
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
exit()
screen.blit(ground_surface,(0,300))
screen.blit(sky_surface,(0,0))
screen.blit(text_surface,(300,50))
snail_x_pos -= 4
if snail_x_pos < -100: snail_x_pos = 800
screen.blit(snail_surface,(snail_x_pos,264))
pygame.display.update()
clock.tick(60)