Add the Second Paddle

The left paddle answers to W and S and stops at both walls. The right paddle is still a white rectangle that sits there. It needs the same script, and it needs its own pair of keys. Two people cannot both play on W and S, so the keys become fields.

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