adding crawlspaceLib causes displayObjects to shift up and left

I’ve recently added the crawlspaceLib to use the Save/Load functions. I haven’t called a function from crawlspaceLib yet, all I’ve done is add the require “crawlspaceLib”, and it has shifted my displayObjects up and to the left about 25 pixels. My displayObjects are simple at this point, just a few roundedRects and texts. I’m using version 1.4 of the Director class, and I noticed that in the crawlspaceLib.zip it is using version 1.0 of the Director class. Could this be part of the problem?

I imported crawlspaceLib for the Save and Load function, and those are working fine. [import]uid: 82378 topic_id: 17892 reply_id: 317892[/import]

I’m not certain of the exact issue (we don’t provide official support for third party classes) but I imagine if you use the newest Director and rather than crawlspaceLib use Ice or Jon Beebe’s Games class that it should resolved the issue while still allowing you to easily save and load data.

Peach :slight_smile: [import]uid: 52491 topic_id: 17892 reply_id: 68329[/import]

Maybe because it has a diffrent ReferencePoint. Default is center, maybe CrawlSpaceLib is using TopLeft! [import]uid: 13097 topic_id: 17892 reply_id: 68328[/import]

Thanks for the replies. I looked at Beebe’s Games class and it looks like it only saves one string at a time, whereas the crawlspaceLib could save an entire table. Is that right?

I’m also wondering if I can just pull out the Save/Load functions from crawlspacelib into my own utility class. [import]uid: 82378 topic_id: 17892 reply_id: 68580[/import]