Guys i am making a Speedball Game

Guys I am making a Speedball Game
I want that when on-screen touch the ball will go right and left but only once right and once left
pls tell me what code i can use

I assume you mean “SpeedBall” the old Amiga game from the 90’s ?
awesome game.
But you’ll need to provide more information for your request, maybe post the code that you have tried to write so far, then state the problem you are having with it.
Or post web link to screen shot, or video of what you are trying to do.
Do you mean when player throws the ball it should bounce off the wall but only once ? or go through the teleporter hole in the wall ?
Then perhaps you will get answers.

PLS ANYONE