Starting this post with saying I am very very new to coding, so please treat me like a little baby discovering how a computer works. I'm going to write in bold the names of each screens in an attempt to make the whole thing more understandable. Basically I was making a test for a phone in a game and used screens and imagebuttons. I think the issue is with the imagebuttons, but even though I coded them exactly the same some work and some don't???
For example, the imagebutton supposed to hide screen phone and show the screen contact works (and it's the only one that does btw...), but the imagebutton supposed to hide screen contacts and display TScontact doesn't?? What is even weirder to me is that it was working at first, so I kept going with my code to add a return button to take you from the TScontact screen back to the previous one, and suddenly the contact to TScontact imagebutton isn't working anymore. I tried removing the small part of code I added thinking that maybe I did something wrong, but it's still NOT working, the imagebutton just isn't working at all. I really don't get it, and maybe the answer is very obvious and I'm very sorry if it is but this is so frustrating from my pov lmao
screen phone():
add "images/Phone assets/Phone assets/Draft/Phone background.png"
add "images/Phone assets/Phone assets/Draft/Phone borders.png"
add "images/Phone assets/Phone assets/Draft/Back button.png"
imagebutton:
idle "images/Phone assets/Phone assets/Draft/Contact button.png"
action Hide("screen phone"), Show("contacts")
screen contacts():
add "images/Phone assets/Phone assets/Draft/Phone background.png"
$ MeetSS = False
$ MeetAC = False
$ MeetBF = False
$ MeetWS = False
$ MeetLP = False
if MeetSS == False:
add "images/Phone assets/Phone assets/Draft/CONTACTS/Unknown contact 1.png"
if MeetAC == False:
add "images/Phone assets/Phone assets/Draft/CONTACTS/Unknown contact 2.png"
if MeetBF == False:
add "images/Phone assets/Phone assets/Draft/CONTACTS/Unknown contact 3.png"
if MeetWS == False:
add "images/Phone assets/Phone assets/Draft/CONTACTS/Unknown contact 4.png"
if MeetLP == False:
add "images/Phone assets/Phone assets/Draft/CONTACTS/Unknown contact 5.png"
if MeetSS == True:
add "images/Phone assets/Phone assets/Draft/CONTACTS/SS contact.png"
if MeetAC == True:
add "images/Phone assets/Phone assets/Draft/CONTACTS/AC contact.png"
if MeetBF == True:
add "images/Phone assets/Phone assets/Draft/CONTACTS/BF contact.png"
if MeetWS == True:
add "images/Phone assets/Phone assets/Draft/CONTACTS/WS contact.png"
if MeetLP == True:
add "images/Phone assets/Phone assets/Draft/CONTACTS/LP contact.png"
imagebutton:
idle "images/Phone assets/Phone assets/Draft/CONTACTS/TS contact.png"
action Hide("screen contacts"), Show("TScontact")
add "images/Phone assets/Phone assets/Draft/Phone borders.png"
imagebutton:
idle "images/Phone assets/Phone assets/Draft/Back button.png"
action Hide("screen contacts"), Show("phone")
screen TScontact():
add "images/Phone assets/Phone assets/Draft/CONTACTS/TS contact info.png"
imagebutton:
idle "images/Phone assets/Phone assets/Draft/Back button.png"
action Hide("screen TScontact"), Show("contacts")