TGB Mock Database
by Majicpanda · in Torque Game Builder · 08/09/2012 (11:39 pm) · 1 replies
I've created a small game that has about 100 items. Each has a behavior that defines the item and can be stored in a SimSet. The issue is, when I change scenes all the objects in the SimSet get emptied out I assume because the new scene doesn't have the objects.
Question then.... how would I create some sort of "mock database" of sorts for items without implementing SQL or XML type storage? The persist flag doesn't appear to play nice with behaviors, so that puts a huge damper in the plans. I would perhaps have to go back to all class methods to do this?
Unsure how to get the desired results of a database of items to use for an RPG type game (very very basic) and allow the items to be instantiated and references for things like inventory, shops, etc across different scenes.
Thanks.
Question then.... how would I create some sort of "mock database" of sorts for items without implementing SQL or XML type storage? The persist flag doesn't appear to play nice with behaviors, so that puts a huge damper in the plans. I would perhaps have to go back to all class methods to do this?
Unsure how to get the desired results of a database of items to use for an RPG type game (very very basic) and allow the items to be instantiated and references for things like inventory, shops, etc across different scenes.
Thanks.
Vlad I
Default Studio Name