Loading & Saving Attributes Help

KiwiLeeKiwiLee Member Posts: 181
edited July 2012 in Working with GS (Mac)
Hiya Guys. Bit of a brain meltdown.

I have a game options screen that has a slider as per TSB's tutorial for increasing and decreasing the volume of in game sound. It achieves this by adjusting the device.audio.music settings and this being constrained to the PositionX of the slider actor.

This all works fine. Now I want to be able to save the setting as when I reload the scene it reset's the slider actors position and subsequently changes the volume back to the scene default setting.

My confusion is I that I am not sure how to structure the code along with where and what to save (i.e. the position of the slider (I believe this is what I should save) or the volume, when and how to reload and get access to the actors (reload of options scene or main game). How to trigger the reload of the saved values etc?

If anyone has an tips I'd be grateful. In the meantime I'll plug away.

Thanks

Comments

  • KiwiLeeKiwiLee Member Posts: 181
    Think I might have solved my problem now but I still get very confused with the triggering and timing of events in GS. That said, if people want to contribute to the thread then it might be useful for other new people to GS. I come from a programming background so the inability to be able to simply call a function is something I need to get my head around.
Sign In or Register to comment.