#include "c:\func.dba"
make object sphere 1,5
do
if controlkey()=1 then fire_obj(1)
loop
function fire_obj(id)
position object id,0,0,cubePos
cubePos=cubePos + 15
if cubepos > 200 then hide object id
endfunction
My first ever 100% home made code

... with problems
i want the bullet ( sphere ) to fire when i press my Control Key . but with this code the bullet will stop if i release my control key before the bullet hides ... i want the bullet to fire when i press my Control KeY and even if release it that sphere keeps on going untill its cubepos is > 200 ......
TRIED MY BEST TO EXPLAIN THE QUESTION TO YOU
AND I HOPE YOU WILL TRY YOUR BEST TO EXPLAIN THE ANSWER TO ME