Stop moving after jump

Guys i have the following global attributes in my game:

btnjump
btnright
btnleft

I have the following rule, in my main character:
If btnjump is true, btnright is true and btnleft is false:

Change: linear.velocity.y to 400 and linear.velocity.x to 300

The actor succesfully jump to the right, the problem is, after he jumps, the linear.velocity.x doesnot stop, how could i fix that?

Comments

Sign In or Register to comment.