title: Fixing Sizing in Spritekit
body: <p>I am creating an app in SpriteKit using C# on Xamarin, and I am trying to position "Tiles" correctly on a 1024x768 scene. Here is my code for the tiles.</p>
  
  <pre><code>     public class GameScene : SKScene
  {
      Tile tile1 = new Tile(320, 320, UIColor.Blue);
      Tile tile2 = new Tile(320, 320, UIColor.Blue);
      Tile tile3 = new Tile(320, 320, UIColor.Blue);
      Tile tile4 = new Tile(320, 320, UIColor.Blue);
      public GameScene(IntPtr handle) : base(handle)
      {
      }
  
      public override void DidMoveToView(SKView view)
      {
  
  
  
  
          tile1.numberOfTiles = 4;
          tile1.tileNumber = 1;
          tile1.setTilePosition();
  
          tile2.numberOfTiles = 4;
          tile2.tileNumber = 2;
          tile2.setTilePosition();
  
          tile3.numberOfTiles = 4;
          tile3.tileNumber = 3;
          tile3.setTilePosition();
  
          tile4.numberOfTiles = 4;
          tile4.tileNumber = 4;
          tile4.setTilePosition();
  
          this.AddChild(tile1.tile);
          this.AddChild(tile2.tile);
          this.AddChild(tile3.tile);
          this.AddChild(tile4.tile);
  
          Console.WriteLine(this.Frame.Size);
      }
  
      public override void TouchesBegan(NSSet touches, UIEvent evt)
      {
  
      }
  
      public override void Update(double currentTime)
      {
          // Called before each frame is rendered
      }
  }
  </code></pre>
  
  <p>As you can see, the tiles are set to be 320, 320 in size. The positions are also set in the same ratio, which should be correct. However, this is the output in the simulator</p>
  
  <p><a href="https://i.stack.imgur.com/W73Z0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W73Z0.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the tiles are way too big to fit on the screen, and the positions are incorrect. How would I solve this? If there is code needed to solve this, swift or c# are both ok. Any help would be appreciated.</p>