here, ill make it easier to understand more codelike with object ship=1, object gun=2, object other gun=3, object laser=4, and object other laser=5
load all objects here:1,2,3,4, and 5
hide object 4 and 5
exist#=0
do
pos2and3x-z#'s=object position x-z(2 and 3)
ang2and3x-z#'s=objecct angle x-z(2 and 3)
if mouseclick() and exist#=0
rotate object 4 and 5,ang2and3x-z#'s
position object 4 and 5,pos2and3x-z#'s
show object 4 and 5
exist#=1
endif
if exist#=1
move object 4 and 5,20
if (collides with other ship or goes to far)
hide object 4 and 5
exist#=0
endif
endif
loop
Sarin