Using swift, is there a way to directly extract info from the .sks file, e.g. a SKSpriteNode’s position?
I know the .sks file is a static snapshot and can not be dynamically changed, that is, written to.
In my case, my .sks file shows the initial layout of all my game pieces. 2 are movesble.
I need to extract the initial size and position of these 2 and not hard code these values.
Here is some code which I modified from an older udemy course to avoid the use of deprecated init parameters for NSKeyedArchiver. You can use as an extension to SKNode to load a SKS file as SKNode. Here's the snippet. Hope, this helps.