Crystal Space
Welcome, Guest. Please login or register.
September 20, 2014, 01:15:13 pm

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2051 Topics by 8489 Members
Latest Member: Wajahat30
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Game Content Creation
| | |-+  detecting hits
« previous next »
Pages: [1] Print
Author Topic: detecting hits  (Read 2571 times)
phototrix
Newbie
*
Posts: 20


View Profile
« on: February 03, 2006, 06:13:24 pm »

I'm new at gamedev so this is a newbie question.

In a FPS, an enemy fires a weapon at the player and the player is hit. How is this detected? Is this through collision detection? I want to add a specific sound when the shot hits the player v/s when it misses.

Thanks in advance.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: February 03, 2006, 08:52:27 pm »

I'm new at gamedev so this is a newbie question.

In a FPS, an enemy fires a weapon at the player and the player is hit. How is this detected? Is this through collision detection? I want to add a specific sound when the shot hits the player v/s when it misses.

Thanks in advance.

If you wait about 10 hours hours then the online documenation will be updated with a tutorial which (among other things) explains just this. Basically you have to use the iSector->HitBeam().

Greetings,
Logged
phototrix
Newbie
*
Posts: 20


View Profile
« Reply #2 on: February 06, 2006, 03:56:04 am »

Has the online tutorial been updated? Where? I can't seem to find it.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: February 06, 2006, 06:22:19 am »

Has the online tutorial been updated? Where? I can't seem to find it.

Go to the CS site, click on 'Documentation' and then go to the 'Bleeding Edge and Pseudo-Stable' section there and click on 'User Manual: view online'.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.152 seconds with 16 queries.