Does any body know how to make shooting bullets faster
so far I have been shooting bulets by positoning an object at my x,y,z co-ordinates and using mouseclick,bulletlife move object etc...
it takes too long to shoot this bullet and get a response on the target.
if i move the bullet too quickly it moves through objects unnoticed
I was playing half-life (a game) yesterday and noticed that
you could fire a gun from a great distance and the result on the target was INSTANT.
I thought about how they might do this and i came up with two ideas non of which work in practice.
firstly.
have a long thin cylinder locked on and running through the centre of the screen if this collides with anything and the object it collides with can be seen (in other words its not behind a wall) and mouseclick()=1 then kill the target.
I looked at a command called object on screen and the folowing code would work if this command only returned a 1
if the object was
only visible however it does not work because this command returns a one when it is on screen but even when it is obscured.
CODE:
rem before the loop make a cyclinder long enough to stretch across the level.
make object cylinder 1,1000
`scale it so it is thin
scale object 1,5,5,100
`lock on
lock object on 1
position object 1,0,0,0
`make a target
load object "h-usa-idle.x",2
position object 2,50,50,50
do
`if you fire and the object is seen and it is on the crosshair (long cylinder)
if mouseclick()=1 and object on screen (2)=1 and object collision (2,1)=1 then gosub enemydie
loop
end
or something like that
does anybody have any other ways of super fast bullets?
PPPLLLLEEEEEAAAAAASSSSSSEEEEEEEE!!!!