Hi,
I appear to be having issues getting some sprites positioned correctly and wondered if someone could help?
I'm following a tutorial written for Objective-C, but am changing it into Swift. Everything runs as it should, but I'm finding nodes being placed at different locations than they should be.
I'm uncertain if I'm allowed to post Swift code as yet, but wondered if anyone could think off-hand what could be causing this? All I'm doing is setting a SpriteKit nodes 'position' property. As far as I understand it, screen size (which was my first thought as a problem) should be taken care of as CGSizeMake method is not an absolute pixel position but an anchor point. Or am I mis-undertanding?
I appear to be having issues getting some sprites positioned correctly and wondered if someone could help?
I'm following a tutorial written for Objective-C, but am changing it into Swift. Everything runs as it should, but I'm finding nodes being placed at different locations than they should be.
I'm uncertain if I'm allowed to post Swift code as yet, but wondered if anyone could think off-hand what could be causing this? All I'm doing is setting a SpriteKit nodes 'position' property. As far as I understand it, screen size (which was my first thought as a problem) should be taken care of as CGSizeMake method is not an absolute pixel position but an anchor point. Or am I mis-undertanding?