I have a few issues here.
1- I have been trying to make 2 missiles shoot at once when a button is pressed, but not sure how to clone it 2 times. Code is here if anyonen can help -
If Keystate(157)=1 and LockShot=200 and ML >=1
set cursor 10,10
LockShot = 200
while object exist(LockShot) = 1
Inc LockShot
endwhile
clone object LockShot,6
position object LockShot,Object Position X(6),Object Position Y(6),Object Position Z(6)
Rotate Object LockShot,Object Angle X(6),Object Angle Y(6),Object Angle z(6)
dec ML
hide object 2
hide object 4
endif
if keystate(157)= 0 then LockShot=200 : show object 2 : show object 4
For LockShotMove = 200 to 299
if object exist(LockShotMove)
move object LockShotMove,300
endif
next LockShotMove
-
2. Not quite sure how to animate stuff. Say i needed the missile to show smoke coming out of the back when launched and when it collides with another object, do i need to do the animation in a modeling software and export it?
3. Need a little info on collisions. I have a level i made that is in a .X format so i think that the collision are a little more tricky then a simple matrx.
4. A little on sound, can sound be attached to an object? If i wanted a sound for when the missile shoots off, can it be attached to it so that when it moves away from me, it fades out.
Any info would be helpfull
Thanks for your time.
http://www.Bevansfunbox.com