Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to Move Around A Minesweeper Map?

Discussion in '2D' started by lonehamster, Feb 6, 2019.

  1. lonehamster

    lonehamster

    Joined:
    Aug 14, 2018
    Posts:
    37
    So I'm using a tutorial from Udemy in order to learn how to make a Minesweeper game. The major problem I'm have is how to deal with tiles that expand past the edge of the screen. I'd like to be able to allow players to move around the screen so they can see all the tiles. The tutorial doesn't cover this. What's the best way to do this? Can someone either help or link me to a tutorial that will help me learn how to do this?

    Easy Board (10 x 10)



    Medium Board (20 x 20)

     
  2. TheHammer1

    TheHammer1

    Joined:
    Oct 15, 2015
    Posts:
    25
    Move the camera via script. You could use the unity's Input features such as Input.GetKeyDown for moving with arrows. You could also detect the placement of the arrows either by tracking the mouseX and mouseY of the mouse.