Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Cant shoot!

Author
Message
Murdock 743
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 16th Jul 2005 09:17
Hi, I am having some difficulty shooting in my current game. Here is the code. The main problems are in the subroutine's that start with missile. Help is needed very badly... All help is welcome.
Thanks,
Christian
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Jul 2005 00:16
The missile will do nothing because it is only allowed to do something when spacekey is pressed and missile_allive = 0.

Instead of this:



do this:



(This code is not tested!)

Immunity and Annihalation makes Immunihalation...
Murdock 743
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 18th Jul 2005 06:16
Thanks, I fixed it but now I have run into the ground again. When I launch the missile it works properly if I don't move, If I move (pitch up or down) the missile fires off the side and goes in the direction that you were first pointed at.

Thanks for the help,
Christian
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 20th Jul 2005 22:02
Why are you zrotating?

set object to object rotation 9,ship should work.
Or
rotate object 9,posax#, posay#, posaz# (it's the same)

Immunity and Annihalation makes Immunihalation...
Murdock 743
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 1st Aug 2005 00:15
yeah I found that too. I fixed that too. Thank you now it works.
Cheers,
Christian

Login to post a reply

Server time is: 2024-09-24 01:28:37
Your offset time is: 2024-09-24 01:28:37