Change the output of this button to the same my x-control does?

I want my chicken to peck just like my normal x-button does, but in this example my chicken keeps pecking even when i release the button.

Related screenshots

This is the ‘code’, the normal x control works and the chicken stops pecking when i release my button but if i choose to press my touch button the chicken keeps pecking even if i release

Thanks in advance :slight_smile:

The X button is on Xbox or Playstation or is it a UI onscreen button you made.
Maybe use the condition “Is released” instead?

If you are using a touch screen, try the following action in a beginning of scene event:

image

It’s on a button i made for mobile game to touch

This didnt work but thanks for the suggestion

Then try “XButton is clicked” for the button instead of “XButton is pressed”.