i am trying to present another view from inside the GameScene class by doing like this:
let mainVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "MainVC") as! MainViewController
self.present(mainVC, animated: true, completion: nil)
the compiler then tells me: "Value of type 'GameScene' has no member 'present'"
Why can't i present another view programmatically and how do i fix this problem?
Thanks to anyone who can help me.