@crazy doughnut productions: will people stop advertising the Nuclear Glory DLL please, there IS a rule about advertising on this forum, I`m getting fed up of it, every time someone asks for help they get an advert stuffed in their face instead
@Nukesoft: enemy and object collision in DB are the same thing, your enemy will be an object so you just need to know how to detect collision between objects, the commands you can use are
OBJECT COLLISION()
OBJECT HIT()
they will both return a value when a collision occurs, but OBJECT HIT will only return a value the first time it is called, you can use them like this, say you want to detect the collision of object 1(the player) and object 4(a monster), just do
collided=object collision(1,4)
when object 1 hits object 4 then the number placed in collided will be a 1, if there is no collision when this was checked then it will be 0, now suppose that you have bullets from the enemy machine gun, numbered from 100 to 132, you can just ask the collision detection to tell you the number of something colliding with your player (object 1) by telling it that the second object will be zero, this tells it to return the number of the colliding object rather than just a one or zero, like this
what_hit_me=object collision(1,0)
the number placed in the variable what_hit_me will be the number of the object that hiot the player, then all you have to do is to check if it was one of the machine gun bullets...eg
if (what_hit_me>100) and (what_hit_me<133) then health=health-20
will deduct 20 from the players health for every time a bullet hit him, then you need to check that the player is still alive by checking the state of the health value, if the bullet was alive for a long time (ie: traveled a long way) then you can deduct less health to make it more realistic, hope thats some help.
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.