But the boolean is changing, I can see the printout…
- Hello guys, can somebody explain to me how it works??
- Initially I wanted the character to rotate when I pressed the button right or left, but in the process I noticed that the boolean variable does not change its value and as a result it somehow becomes true and falls at the same time, please explain this phenomenon and how to fix it, it’s very critical.
I agree that she’s changing, but at a tremendous speed that shouldn’t be.
And it should only switch when I press a button, not spontaneously)
It’s only because you have the logging on tick, you’re seeing it every frame.
You need to move ALL that movement stuff to the other events, not on tick…
An axis event is upated/polled on tick. That is desired, how else could you know its value. I would say what you are seeing is expected behaviour.
See here: