Thanks for the tips everyone, I finally got it working I just got rid of the code that calculated the vectors and tried it all over again from scratch. Go figure now it works. Anyways I have a little section of code that determines if the ship has gone off the screen or not, and if it has it repositions it on the other side of the screen. Can you let me know if there's any way to make this code cleaner? Thanks, here's the code:
if sprite y(1) > screen height()
sprite 1, sprite x(1), 0, 1
else
if sprite y(1) < 0
sprite 1, sprite x(1), screen height(),1
else
if sprite x(1) < 0
sprite 1,screen width(), sprite y(1),1
else
if sprite x(1) > screen width() then sprite 1,0, sprite y(1),1
endif
endif
endif
"A man not willing to die for something is a man not fit to live."
-Martin Luther King Jr.