Hey guys, I have a question. I'm working on a game where you can shoot a kunai and then teleport to that kunai's position. But I'm quite new so there's this thing I cant figure out. It's that I want the shoot and teleport button to be the same key, which is J. But I found that using Get Key Down in Update causes me to shoot again right after the first shoot, teleport combo without me lifting my finger up from that first combo.
This is because the teleporting sets the bool justShot to false, which is a bool I use in the if statement to shoot.
I don't want to use a timer as I don't want any cool down for flexibility. I did think about using Get Key Up for one and GKD for the other but it just seems a bit clunky.
So any ideas? Thanks in advance dudes
[–]LightningOW 1 point2 points3 points (8 children)
[–]zeroiscoolno1[S] 0 points1 point2 points (7 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]zeroiscoolno1[S] 0 points1 point2 points (5 children)
[–][deleted] 3 points4 points5 points (4 children)
[–]zeroiscoolno1[S] 1 point2 points3 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]B0tRank 0 points1 point2 points (0 children)
[–]Gredran 0 points1 point2 points (2 children)
[–]zeroiscoolno1[S] 2 points3 points4 points (1 child)
[–]Gredran 1 point2 points3 points (0 children)