Move your mouse to move your spaceship. To see the explanation to the coding click the 'See inside' button and you will see the explanation in comments I have added there.
I had a lot of trouble adding the smoke simulation in my games and when I finally got it I thought that many other people could be having this problem so I made this. The spaceship artwork is from 'Warfare' by FunkyFunny NOTE - There my be other variations for making these simulations but this is the one I prefer. Love and favourite if you are using these scripts in your project.