Input event keeps triggering without input

Hello,

I made the following blueprint http://puu.sh/gm3Fp/8882de883f.jpg

these are my axis mappings: http://puu.sh/gm4fw/f3d0567586.png

it’s supposed to call the MoveForward function everytime I press w or s, but instead it calls the function every tick. What am I doing wrong here?

thanks

An axis event will always trigger every frame. If you just want to get an event when someone is pressing a key use an action mapping but the axis event will each frame fire an exec impulse.

The normal way to work with this is to multiply your movement with the axis value. Like that if the key isn’t pressed you get 0 as result which will cause no movement because 0 * X = 0. You can also use the “Compare” node. If it’s larger than 0 call the forward function, if it’s smaller the backwards one and if it’s equal do nothing.

I hope that clears it up a little :wink:

Cheers

Oo that makes sense. Thanks!