having a more concentrated look at home with my code. the problem with the firemissile function is that it cannot see the values of the x and y of the ship that is firing it because there is no ship visible to that function.
if i do a
local enemyship:tenemyship = new tenemyship
sure it can see an enemy ship, but it will be seeing an entirely new enemy ship and not even the one or ones firing the missiles.
if i do a
local enemyship:tenemyship = new tenemyship
sure it can see an enemy ship, but it will be seeing an entirely new enemy ship and not even the one or ones firing the missiles.