![](/uploads/1/2/5/5/125540556/797823146.jpeg)
co dePlease put your code between these co de tags so it is formatted nicely./co deDo you have a variable to represent the paddle's position? If not, you'll need to make one.Looks like your 'Timer' function is where your game logic is supposed to go.
![Bricks Bricks](http://cdn.scratch.mit.edu/static/site/projects/thumbnails/56/4074.png)
So that's where you would check to see whether the user is pressing Left or Right keys to move the paddle. If they are, you would modify the variable for your paddle position.Then when you draw the paddle in your Display function, you draw the paddle at the position indicated by your position variable. So lines 125/126 are you drawing the paddle, right?You are drawing the paddle at a fixed position.
Control the paddle left and right to destroy as many bricks as you can without letting the ball go past! Build your way up through the many levels, but don't get too excited, things will only get harder and harder.
You'll have to change that. You need to create a variable to keep track of the paddle position. Then when you draw the paddle, you use that variable to determine where you should draw the paddle.Then in your Timer function (line 189), you do your game logic. You have the game take one 'step'. You move all your in-game logic (ie, move the paddle, ball), and do your collision detection (see if the ball hit a brick, or if it hit the paddle, and respond appropriately).So in the timer function, you'd check the player input.
See if they're pressing the Left or Right arrow keys (or whatever keys you want for input). If they are pressing those keys. You adjust your paddle position variable.
![](/uploads/1/2/5/5/125540556/797823146.jpeg)