Hi there again.
For some time (longer than I would like to admit) I'm trying to implement very basic phone system, or rather bunch of screens and textbuttons but I'm currently going bald while trying to do that.
My game features option to choose location that player wishes to visit via choice menu. I want to add simple "check phone" option in addition to going somewhere or skipping day that will display scrollable list of contacts.(I tried to add option of sorting them depending on which contact player aquired first but that's not most important right now) Contact upon clicking will simply display 3 choices/textbuttons like: Call (which will jump to the certain label depending on character), Messages (that player will be able to read) and going back to choice menu during free time. (Ofcourse while having some basic png of phone in the background but art part of code is kinda irrelevant).
There is a high chance that I already checked 80% if not more, of all already existing examples of phone systems (With the one from
Phones mostly work well from the get-go but I can't make them display correctly via choice menu. I already tried using call/show/jump depending on which code I was trying but it always either closed game and went immediately to main menu or weirdly auto selected other option in choice menu when I was closing/hiding phone screen (for example when having go somewhere, check phone, go to sleep, when closing phone it autosellecst go somewhere).
I assume that maybe my free_time label is f*cked up (unlikely? maybe) or I simply don't know about something obvious (very likely).
I can quite reliably modify code to store messages of each character, display images with an option of making them full screen etc. but act of showing phone itself is just black magic for me, which is little bit embarrasing.
It's very likely that implementing this basic calling/msg system is the last thing I need to do from technical/mechanical part of game. Obviously I'm trying to learn how to do that from scratch/using free examples as I can't currently afford hiring programmer.
Here is my crude free time label in which I would like to include phone option. Weekend is working on very simillar manner besides checking specifically for Saturday or Sunday so I assume it's irrelevant but that why there is else at the start. Code was hugely reduced, namely I deleted all my flags and checks regarding story but that's basically how it looks.
Any tips/examples that will help me are most welcome, thank you in advance,and maybe it will help future folks struggling with that as well.
For some time (longer than I would like to admit) I'm trying to implement very basic phone system, or rather bunch of screens and textbuttons but I'm currently going bald while trying to do that.
My game features option to choose location that player wishes to visit via choice menu. I want to add simple "check phone" option in addition to going somewhere or skipping day that will display scrollable list of contacts.(I tried to add option of sorting them depending on which contact player aquired first but that's not most important right now) Contact upon clicking will simply display 3 choices/textbuttons like: Call (which will jump to the certain label depending on character), Messages (that player will be able to read) and going back to choice menu during free time. (Ofcourse while having some basic png of phone in the background but art part of code is kinda irrelevant).
There is a high chance that I already checked 80% if not more, of all already existing examples of phone systems (With the one from
You must be registered to see the links
being closest to working perfectly, thanks a lot ) but I always struggled with one thing.Phones mostly work well from the get-go but I can't make them display correctly via choice menu. I already tried using call/show/jump depending on which code I was trying but it always either closed game and went immediately to main menu or weirdly auto selected other option in choice menu when I was closing/hiding phone screen (for example when having go somewhere, check phone, go to sleep, when closing phone it autosellecst go somewhere).
I assume that maybe my free_time label is f*cked up (unlikely? maybe) or I simply don't know about something obvious (very likely).
I can quite reliably modify code to store messages of each character, display images with an option of making them full screen etc. but act of showing phone itself is just black magic for me, which is little bit embarrasing.
It's very likely that implementing this basic calling/msg system is the last thing I need to do from technical/mechanical part of game. Obviously I'm trying to learn how to do that from scratch/using free examples as I can't currently afford hiring programmer.
Here is my crude free time label in which I would like to include phone option. Weekend is working on very simillar manner besides checking specifically for Saturday or Sunday so I assume it's irrelevant but that why there is else at the start. Code was hugely reduced, namely I deleted all my flags and checks regarding story but that's basically how it looks.
Any tips/examples that will help me are most welcome, thank you in advance,and maybe it will help future folks struggling with that as well.
Python:
else:
label menu_weekday:
scene free_time
menu:
"Go somewhere":
label menu_weekday_choices:
menu:
"City Center":
menu:
"Library":
jump library_first
"Bar":
jump bar_first
"Go back":
jump menu_weekday_choices
"Streets":
menu:
"Alleways":
jump alleys_first
"Cafe":
jump cafe_first
"Go back":
jump menu_weekday_choices
"Go back":
jump menu_weekday
"Check phone":
#here I already tried few things like showing screen or jumping to appropiate label
"Go back to your room and sleep":
jump sleeping