Move a Paddle

The Console knows about your keys now. It prints 1 while you hold W, -1 while you hold S and 0 the rest of the time. Meanwhile the paddle keeps drifting up as if nothing were pressed. Those two halves have never met. One piece added to the movement line joins them, and the left paddle answers to the keyboard.

More in Set Up the Input System

  1. Read the Keyboard
    1. Ask a Question With if
  2. Move a Paddle
    1. Keep the Paddle On Screen
  3. Add the Second Paddle

All 54 topics in the Your First Unity Game