Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits)

yes, of course there is a solution. to move the car left and right, first you have to create a variable called: player_car_pos=[240,320], then change the line that is responsible of blitting the car that is: 

screen.blit(player_car,(240,320))

to this:

screen.blit(player_car,player_car_pos)


second, comment out the or delete the code under the if statements (conditions):

if keys[K_LEFT]:

and

elif keys[K_RIGHT]:

and replace it with:

if keys[K_LEFT]:

   player_car_pos[0]-=10

elif keys[K_RIGHT]:

   player_car_pos[0]+=10

then the car should move left and right, thank you for enjoying my work!.