Question about Shooting Behaviors
by Micheal Lawrence · in Torque Game Builder · 07/24/2007 (12:03 pm) · 4 replies
Im toying around with the new version, and trying to get behaviors down. I have an object using shooter controls, and when i set spacebar to shoot, nothing happens. When i set the key to another key, it shoots, but the shot destroys its creator, and causes the ship to move right a few pixels. Anyone have any clue as to what Im doing wrong?
#2
07/24/2007 (4:43 pm)
That solved the problem perfectly, thanks alot for the quick response!
#3
At least with that.
If you would like to see my code you can download it here.
It is just a simple game for me to learn with.
Click Here
Let me know if you have questions.
Jd
07/24/2007 (4:43 pm)
Hmmm, I used Shoots and Shooter with the space bar and had no issues.At least with that.
If you would like to see my code you can download it here.
It is just a simple game for me to learn with.
Click Here
Let me know if you have questions.
Jd
#4
07/24/2007 (5:44 pm)
Ah, I think what happened was that it didnt like two objects sharing the same shoot button, because when i changed Player 2's shoot button, space started to work.
Torque Owner Melissa Niiya
For the other issue--the shot destroys the ship? Does the ship have the TakesDamage behavior, and the projectile have the DealsDamage behavior? Try setting the projectiles layer to 1 and the ship's layer to 0. Then, under "Collisions," turn off the ship's collision with layer 1. Let me know if this doesn't work for you, or if I'm misunderstanding your problem.