Hey guys thanks for the help.
I managed to get it working the way I wanted to.
Just so people know and if people want to use it here is the code I got to in the end.
sync on : sync rate 60
set display mode 1366,768,32
set window on
maximize window
load image "ship.png",1,1
sprite 1,200,200,1
offset sprite 1,25,25
load image "flame.png",2
sprite 2,200,200,2
offset sprite 2,20,-18
type ship
speed as float
angle as float
vx as float
vy as float
x as float
y as float
endtype
player as ship
player.speed = 0.1
player.vx = 0.0
player.vy = 0.0
player.x = 200
player.y = 200
player.angle=0
do
set sprite alpha 2,0
if player.vx>=7 then player.vx=7
if player.vx<=-7 then player.vx=-7
if player.vy>=7 then player.vy=7
if player.vy<=-7 then player.vy=-7
if KEYSTATE(17)
inc player.vx, cos(player.angle-90)* player.speed
inc player.vy, sin(player.angle-90)* player.speed
set sprite alpha 2,200
endif
if KEYSTATE(31)
if player.vx>0 then dec player.vx,0.05
if player.vx<0 then inc player.vx,0.05
if player.vy>0 then dec player.vy,0.05
if player.vy<0 then inc player.vy,0.05
endif
if KEYSTATE(32)
inc player.angle,3
player.angle = wrapvalue(player.angle)
endif
if KEYSTATE(30)
dec player.angle,3
player.angle = wrapvalue(player.angle)
endif
inc player.x,player.vx
inc player.y,player.vy
if player.y>screen height() then player.y = 0
if player.y<0 then player.y = screen height()
if player.x>screen width() then player.x = 0
if player.x<0 then player.x = screen width()
rotate sprite 1,player.angle
sprite 1,player.x,player.y,1
sprite 2,player.x,player.y,2
rotate sprite 2,player.angle
sync
loop