Code: Select all
screen mainphonescreen:
frame at popup:
xalign 0.5
add "Phone/150Phone.png"
grid 4 4:
imagebutton auto "phone/photo_%s.png" action ui.jumps("take_a_photo")
Also, you seem to use labels to show screens when you can really just show a second screen on top and replace it by tagging it with something like "phoneui".
This:
Code: Select all
label travel_map_a:
call hide_all_phone_screens
show screen blank_phone_screen
show screen travel_map_a
"" #Need this, or bad things will happen...
jump travel_map_a # To prevent more bad things happening.
You should also align the phone bg and buttons at the center, and use a transform to make it look like it's popping up from underneath.
I managed to make a cool looking popup animation by using this transform:
Code: Select all
transform popup:
yalign 10.0 rotate 50
linear 0.3 yalign 0.5 rotate 0
Code: Select all
hotspot (127, 492, 86, 42) clicked ui.jumps("hide_all_phone_screens") # Home button (Exits)
You should probably just maintain a playable demo and let people copy the code from there rather than releasing it separately/in the OP.