moving a player when holding wd, as, aw
ive got player movement but it isnt working properly (in unity)
12 Replies
You are using else if, so only one case can match
For handling diagonal inputs, you need to allow more than one case
wdym
I mean exactly that
so i dont use else if?
oh
else
only triggers if the if failed
so with if + else if + else if + else if
, only one of these will ever be executedwhat do i use
what you probably want is to just remove the
else
because more than one of these can be true at the same timeah
thanks
$unitybug
If intellisense is not working for Rider / Visual Studio, follow these steps.
Close the editor and re-open it again by double-clicking a script file.
Fix this first
?