you see these variables? I like these variables, but they change all of the time as you can probably see. Is there a way I can sort of… pause the changing numbers when I press a certain key? I’m creating a jumping mechanic you see, and the way these variables are set up now sends my character to space. After you offer me a solution, can you also explain what I wanted so I can learn something? Thank you very much.
@Suddoha
I agree. I’ve been looking around and i haven’t had much luck. Thank you, I’ll see what this does. Oh no, I know How to (Input.getKey (keyCode.W)). My situation relies on pausing the variable when w is pressed. transform.position.x is a number that is constantly changing. I want that number to pause when I hold down w
Funny enough, I was just looking at your last thread. Anyway, thank you very much. Even for a beginner, I should’ve known such problems would be solved with an if/while statement(s)
Because you’ll never get out of the loop.
The input will be reset (getKeyDown/Up) refreshed (getKey) with every frame, but you don’t even have a chance to get to the end of the current because you’re stuck there.
Don’t forget that Update itself is a loop. so an if is what you should be using.
@MrDude @Suddoha
one more quick problem I need the newly added “last” variable to be a float. I tried last.x but it gives the same result
“Use of possible unassigned feild ‘x’”