Hey everyone,
I design a character can shoot in four direction: up down left right. By using four button: W S A D. The issue is that , when i push those buttons together the character can shoot in direction at same. But what i want is when i push one button the character only can shoot in that direction .I don`t want my character can shot in different directions at same time. How can i fix this.Please assist .
This is my code:
I design a character can shoot in four direction: up down left right. By using four button: W S A D. The issue is that , when i push those buttons together the character can shoot in direction at same. But what i want is when i push one button the character only can shoot in that direction .I don`t want my character can shot in different directions at same time. How can i fix this.Please assist .
This is my code: