We will add some controls now enter this
-----------------------------------------------------------------
This moves the car up and down
-----------------------------------------------------------------
if pad:up() then
character = car1
player.y = player.y - 2
end
if pad:down() then
character = car1
player.y = player.y + 2
end
-----------------------------------------------------------------
This moves the car left and right
-----------------------------------------------------------------
if pad:left() then
character = car1
player.x = player.x - 2
end
if pad:right() then
character = car1
player.x = player.x + 2
end
------------------------------------------------------------------
Enter that in to your code
Bookmarks