Touch interface problem

i had created a script for rolling ball movement (android). to move the ball i need to click the button each time, while i had selected on pressed in widget blueprint.and if i press the button ball doesnt move and if i play this game in android game lags a lot . Can anyone help me out (SORRY FOR BAD ENGLISH)

THE BALL SHOULD MOVE BY PRESSING THE BUTTON BUT IT DONT MOVES I NEED TO CLICK THE BUTTON AGAIN AND AGAIN TO MOVE THE BALL . CAN ANYONE HELP ME OUT ?

Hi there! The main thing - OnPressed events are happen only once and that’s all for one button press! So you need to do it like this: when button OnPressed event happens set some bool variable connected with this button to true, and when same button OnReleased event happens set this flag to false. This is just keeping state of your buttons. And movement should be implemented in Tick body(less recomended) or Timer body (more reccomended), depending on flags that are true. There is also more practical way - not to keep flags by yourself, but just use buttons states for this purpose =)