[SOLVED]How to add Android/IOS full screen frame?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
birctreel
Regular
Posts: 42
Joined: Wed Dec 20, 2017 7:17 am
Projects: Knell of st.Godhrkar
Organization: -Andinomie-
Tumblr: birctreel
Location: Beijing, China
Contact:

[SOLVED]How to add Android/IOS full screen frame?

#1 Post by birctreel » Fri Dec 13, 2019 9:45 am

Hello, is there anyway that we can add a frame outside a PC-1080p size game so that it would show like full screen on Android/IOS mobile platform?

Is there anyone who know how to reach this goal?

==================================================
UPDATED:
Eventually, I have not completed a frame system to fit every mobile platform, but made an alternative screen of 21:9 to fit the latest phone. So there are 16:9 and 21:9 versions of my game.
It runs perfectly on Android, but for IOS, the current renpy to IOS version didn't support 21:9 ratio. Therefore, only when I add 21:9 launchimage could my game run as 21:9 ratio. If you have the same problem, you can refer to my another topic here: viewtopic.php?f=8&t=57747
Last edited by birctreel on Mon Jan 13, 2020 3:41 am, edited 1 time in total.

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: How to add Android/IOS full screen frame?

#2 Post by isobellesophia » Fri Dec 13, 2019 9:58 am

I am a friendly user, please respect and have a good day.


Image

Image


User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: How to add Android/IOS full screen frame?

#3 Post by Imperf3kt » Fri Dec 13, 2019 4:02 pm

When creating your game, select custom resolution, and set it to what you need.

Or, edit the first couple of lines of gui.rpy and check the rest of the gui still looks right.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: How to add Android/IOS full screen frame?

#4 Post by rames44 » Mon Dec 16, 2019 1:34 pm

One option that comes to mind - there are Ren’py methods that will allow you to know if you’re on a mobile device. You could try creating a new custom layer that would live behind the rest of the game, and put the background content on it, sized to 100% screen size. Whether of not this would work depends on how PyTom handles layers and game content on mobile.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], span4ev