Hi everyone, I was working on this tutorial,
However, as the tutorial explains, I have a variable for player direction (2,6,8,4) for Down, Right, Up and Left. So I have conditional branches that shoot projectiles in the given direction based on that variable.
Pretty simple, but I was hoping 9,7,1, and 3 would work as diagonal, but they don't seem to. So I tried a branch that checks for up AND Right and it still didn't seem to work.
Surely there's an easy way to do this, or a chunk of script. Thanks!
However, as the tutorial explains, I have a variable for player direction (2,6,8,4) for Down, Right, Up and Left. So I have conditional branches that shoot projectiles in the given direction based on that variable.
Pretty simple, but I was hoping 9,7,1, and 3 would work as diagonal, but they don't seem to. So I tried a branch that checks for up AND Right and it still didn't seem to work.
Surely there's an easy way to do this, or a chunk of script. Thanks!