47
Hello! This is my first post here, and im looking for some help with a game i’ve been working on for a few days.
I have a gun set-up in BGE to where an “empty” is on the Barrell of the gun and on left mouse click the gun fires a Bullet from the second layer.
The gun is working perfectly… I have recently added some Baddies Which have the game property of “badguy1” into my game and the Gun is the only way to kill/end them.
But when i tried to use a collision tag on the bullet. I have it set when bullet collides with “badguy1” it should use the edit object actuator to end the object. But that doesn’t seem to be working as i’ve tested the game several times…
How could i use the bullet to end the object of “badguy1”
But that doesn’t seem to be working as i’ve tested the game several times
all of the times?
how big is your bullet, 1mm or 1 meter?
how do you end it? the endobject actuator on the badguy1 or on the bullet?
does your objects have physics/type set?
A:
1, 2: if the bullet is to small or traveling to fast the collision will not be detected, so the bullet flies right trough the badguy’s mesh/bounding box.
3: I hope you have collision - and - endobject on the badguy, else you only ending the bullet. (as monster said)
4: both objects should have at least static or dynamic type. with collision border set to box(static don’t need a bounding box, you can leave it off).
it can be a few things, if above does not help at all then make an example file for us, so we can see what you have done.