#the simplest way to do it is to see if
1 messages · Page 1 of 1 (latest)
i tried using an if statement to do it and it doesn't register the input.x. whats the best line to use to check if input.x is 0
https://paste.ofcode.org/5UhgaTiKuVfAt5GX5KGRtW thats what im currently working with
I dont see the if statement
i deleted it since it wasn't registering.https://paste.ofcode.org/x2EhQWVEUgXsbn9zTrBUNv i re added it
thats not how you write an if statement
i haven't done one in C# yet. i started with GML and that's roughly how it worked
You should look up how to write one in c#
f (Input.x == 0 || walkspeed = 0); is what i cam up with looking around but its still not registering.
is this throwing an error?
ya, the red line is under the "x" after input
What do you think moveInput.x means in your code?
if i had to guess it would be an input being made to the x axis. but i'll be honest im not sure. was following a tutorial and decided to try and do something extra to help learn
yeah, so first make an if statement that checks if the .x value is equal to 0
once you have that if statement coded, you can set the walkspeed to 0 inside it
just so you know, your logic is correct. It’s just the syntax that isn’t