help my gun isnt working

(MisadventureFilms) #1

hi im making a game with guns AI and health packs that you can pick up for your health (the green things) and so far everything has been going good i have a health bar farly good AI and health packs that work now this isnt the real game its just the test game (i.e. so that i can figure all the programing out in this and then appley it to the real thing) and so i made it so you can shoot a block out the front of you and it works fine just for some reason when you shoot from differnt angles the bullet seems to change where it goes …if you rotate around to the other side it will go slitly to the left or right and wont shoot striaght dont know why could you help? and it was way worse then before but i did some tweeking and fixed it but its still not perfect? o and i only used logic bricks

controls

forward—W
rotate left----A
rotate right—D
shoot block thingys/bullet------ Space bar

Blend.file------ gun_game_thing_with_boxes.blend

P.S. the block thingy/bullet is in the second layer

thanks, J.D.

0 Likes

(ititrx) #2

oh, your axis are probably not matching throughout your objects. Do you understand? So when you turn the bullet axis is tipped a different direction.

Go through and check and change them. Hope that helps…

0 Likes

(MisadventureFilms) #3

how do i fix/change the axis tho?

0 Likes

(MisadventureFilms) #4

still not working can someone help?

0 Likes

(J09) #5

Make sure that you have the bullet aligned the way you want it to head, then hit CTRL + A. Also check to make sure that the speed of the bullet is in local coordinates, not global coordinates. (the depressed “L” in the motion actuator indicates local coordinates).

0 Likes