You are moving object 5 it's current x position+2, so if it's x position is 500, the next move will place it at 1002. The next move will place it at 2006 and so on. My guess is that you really only want to move it 2. It seems you are exponentially increasing the object's x position and hence, the
Quote: "strange numbers and the letter "e""
.
I don't see where shoot# is ever returned back to 0 in the code shown (perhaps it does and you just didn't show it). If you don't return it to 0, the code will keep moving object 5 by it's position +2 from the very first time you press the spacebar.
By the way, you are using the float 'shoot#' like an integer. If you need it to be a float, you should show it as 1.0. If you don't need it as a float, just take the # sign off and use it as an integer. You could just take the shoot# variable out of the mix completely and just move object 5 when the spacebar is pressed.
You could do it like this:
if spacekey()=1 then position object 5,object position x(5)+2,object position y(5),object position z(5)
Hope this helps.
LB