Shoot Em' Game?

I was wondering does anybody know to constrain the spawner to the nozzle of the gun so, the bullets start to come out of the very tip of the gun barrel rather than the center? Also how do you make the bullets fire in any direction? So like if the person is firing the gun and he decides to fire in a different direction the bullets turn with him? Thanks :)
(I know how to constrain stuff but only to the center of the actor)

Comments

  • Speedy007Speedy007 Member Posts: 229

    You can make bullets spawn in a certain direction using the Move feature... Set up a rule so when your guy turns around have it turn the bullet actor around along the x axis. Put a actor that the bullet will spawn from at the tip of gun make that actor move at the same speed as your Actor(Gun man)... Now put another spawn actor on the other side of the gunner at the same length as the first bullet spawn. Set Spawn2 to move as same speed as other
    one... Now use a Boolean to control what side the bullet spawns on...When facing one way have that Boolean as true when he turns around change that Boolean to false...When true have your bullet spawn from right actor, when false have your bullet spawn from left actor. Set up your bullet movement like this as well. If using arrows as left/right controls
    Have the right one set to change Boolean to true when pressed. When left is pressed change Boolean to false....

    I know it was a mouthful and it probably made no sense but i hope it helps

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @Speedy007 thanks bro :)

  • Speedy007Speedy007 Member Posts: 229

    It might work...lol...I haven't tried it yet.

Sign In or Register to comment.