Saving Sprites
Posted: Sun Apr 04, 2021 6:10 am
Hi,
I used the tutorial to below implement summary information in my own project.
https://www.pixelcrushers.com/phpbb/vie ... f=3&t=2594
Most of my envisioned system has been successfully implemented but I'm looking at two remaining tasks to do:
1 - Accessing the save system involves the use of a camera ingame that takes a picture of the player. This is not a screenshot, but a randomly selected sprite from a library unique to each scene. I think I am able to serialize it without any errors, but I can't seem to deserialise it and get a null reference.
2 - I also want to add the currently active main/story quest that the player is on. I am aware that I can add quests to groups so it would be a matter of finding the main quest group and looking for the quest which is active in there. Is there functionality to support this? In addition, due to the story the main quest line is not instantly started when the game begins but comes in potentially after the player has had the opportunity to access a couple of save points, so I believe I would need to return null or nothing if no quest are active.
Would you be able to shed any light on this? Thanks in advance.
I used the tutorial to below implement summary information in my own project.
https://www.pixelcrushers.com/phpbb/vie ... f=3&t=2594
Most of my envisioned system has been successfully implemented but I'm looking at two remaining tasks to do:
1 - Accessing the save system involves the use of a camera ingame that takes a picture of the player. This is not a screenshot, but a randomly selected sprite from a library unique to each scene. I think I am able to serialize it without any errors, but I can't seem to deserialise it and get a null reference.
2 - I also want to add the currently active main/story quest that the player is on. I am aware that I can add quests to groups so it would be a matter of finding the main quest group and looking for the quest which is active in there. Is there functionality to support this? In addition, due to the story the main quest line is not instantly started when the game begins but comes in potentially after the player has had the opportunity to access a couple of save points, so I believe I would need to return null or nothing if no quest are active.
Would you be able to shed any light on this? Thanks in advance.