vaendryl / Sunrider

source code of the visual novel 'Sunrider'
http://sunrider-vn.com/
41 stars 21 forks source link

Re-coded the bonus menu #24

Closed EnderShadow closed 10 years ago

EnderShadow commented 10 years ago

The bonus menu should now be somewhat easier to use. I almost have chapter selection done, but I still need to find a way to call reset_classes() before jumping to the chapter. Any ideas on how to do this?

vaendryl commented 10 years ago

I'll go do some testing with this and see if I can come up with something

EnderShadow commented 10 years ago

Ok. I have some ideas as well, so I'll try them out later today. Good luck

vaendryl commented 10 years ago

IOError: Couldn't find file 'Menu/deleted_scenes_base.png'. think you could help me out with that one? :D (and a number of different images actually)

I see you've set it such that clicking a chapter button would instantly start the game at that label, but I'm thinking you'd have a lot more flexibility if you start the game at a separate label first where can run the necessary calls after which you jump to whatever destination is applicable. you can store the selected BonusItem in the store so you can easily reference it later with something like the following:

action [ Hide('main_menu') , SetField(store,'selected_chapter',chapter[i-1] , Start('chapter_select_label') ] then you'd set a label somewhere that initializes somewhere along the lines of: label chapter_select_label: call stuff * set various variables based off of the chosen chapter $ reset_classes() #probably shouldn't even be required. jump selected_chapter.jumploc

EnderShadow commented 10 years ago

The missing files are because I forgot to push the new images as well...

EnderShadow commented 10 years ago

I'll push than when I'm at my computer.

vaendryl commented 10 years ago

sure :p no rush!