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.

Dark GDK / Shooting.2

Author
Message
Tylerman35
15
Years of Service
User Offline
Joined: 23rd Jul 2009
Location:
Posted: 30th Aug 2009 17:16
can someone give me some help. when i shoot anywhere on my map my enemy healh goes down. Can someone tell me how to make a dirrect hit?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 30th Aug 2009 18:16
Check collision with your enemy. Really going to need to know your method for shooting, and probably need to see some code too.
Potassium
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location:
Posted: 30th Aug 2009 21:40
Use dbPickObject command for simple bullet detection. Make sure the pick object, picks the object in the crosshair coordinates.

so if the enemy's id's are between 1 and 10 then:



so here's the basic shooting code:


Hopefully that helps.

There are 2 ways to develop for the N64:
1. Develop C code with PsyQ SDK and illegal Nintendo libs
2. Develop C code with legal kits, such as the Ground Zero devkit (g0dev.zip)
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 31st Aug 2009 04:49
Is this 2 or 3d?
Potassium
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location:
Posted: 2nd Sep 2009 21:38
I was assuming he meant 3d. If he meant 2d, then oh well, shoulda been more specific...jeez!

There are 2 ways to develop for the N64:
1. Develop C code with PsyQ SDK and illegal Nintendo libs
2. Develop C code with legal kits, such as the Ground Zero devkit (g0dev.zip)

Login to post a reply

Server time is: 2024-10-01 12:27:45
Your offset time is: 2024-10-01 12:27:45