- Home /
2D FPS shooting
Hello developers, I'm Working on duck shooting game. I'm working on 2D fps shooting system, as you can see in Picture ;
I've used FPS shooter based (A rifle firing it with ammo prefab as picture below ; )
I can often shoot the ducks with this way; Then I changed it to Click to destroy but: The click ( I use OnMouseEnter because of mobile touch inset) is not working perfectly :(
So does anybody have an idea ? I'll write the code if you want.
Answer by voporak5 · Aug 05, 2013 at 03:21 AM
Instead of Click you could try OnMouseDown() { //dfhdoifhdoi; }, Or you could do a raycast and store the object your raycast hits into a variable and do an if statement. Throwing stuff out there
Your answer
Follow this Question
Related Questions
Projectile Firing/Gun script 1 Answer
Display Ammo Count Above Player 1 Answer
Gun reload and clip size 0 Answers
Make an enemy only rotate with navmesh agent 1 Answer
Enemy fire rate? help! 2 Answers