-
Strafing?
How do I make a character strafe and shoot in the selected direction? I used stop animation to keep the character looking forward but when I strafe left or right it shoots left or right. How would I make my character strafe left and right and still shoot forward? Thanks a lot.
-
Re: Strafing?
Use shoot in direction (forward) instead of shoot in direction that the character is facing?
Alternatively split the character into a visible part that faces the right way and an invisible part that you actually move about, which would face sideways when you strafe.
-
Re: Strafing?
Ok but then when I'm not strafing it wouldn't really work out right because I'd still be shooting forward instead of left/right/backwards.
-
Re: Strafing?
If you are using a key to strafe, you could do something like this:
*(NEGATE)Repeat when (key to strafe) is pressed
+(Key to shoot) is pressed
-Player:Shoot Bullet in direction of player
*(Key to strafe) is pressed
-Set Alterable Value A of Player to Dir(Player)
*Repeat when (key to strafe) is pressed
+(Key to shoot) is pressed
-Player:Shoot Bullet in direction Alterable Value A(Player)
I think that would work