Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Make puck movable using arrow keys

Discussion in '2D' started by showdowndev1, Jul 9, 2020.

  1. showdowndev1

    showdowndev1

    Joined:
    Jul 7, 2020
    Posts:
    2
    Hi,

    I very new to Unity and C#, but I'm creating an air hockey game with a twist for a school project. I've followed a tutorial to get the basic mechanics of an air hockey game working. However, I am now trying to make the puck movable using arrow keys on a keyboard, only within Player 1 boundaries. I am confused on where to start for coding this. Does anyone know a good way or any tutorials that would help?