Basically nothing is currently happening, here is a little code snippet of what I think is causing the problem...
Code: Select all
if love.keyboard.isDown(love.key_down) then
local player_x = player_body:getX() + math.cos(math.rad(player_body:getAngle() + 90)) * (player_speed * dt)
local player_y = player_body:getY() + math.sin(math.rad(player_body:getAngle() + 90)) * (player_speed * dt)
player_body:setVelocity(player_x, player_y)
end
Can anyone point me in the right direction?
Thanks in advance, and thanks for LÖVE.