How can I get the bound of scene?
I'm testing with demo and I initialize scene in this way:
GameScene *scene = [GameScene unarchiveFromFile:@"GameScene"];
scene.scaleMode = SKSceneScaleModeAspectFill;
So, when I tap on screen I log:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
for (UITouch *touch in touches) {
CGPoint location = [touch locationInNode: self];
NSLog(@"%f, %f", location.x, location.y);
}
}
When I press left-bottom I get circa 300-0 while I'm expecting 0-0.
How can I get the top-bottom-left-right bounds? I can't find a method like:
[scene getBounds]
Scene.frame prints: (0,0,1024,768) that not corresponds!!