Renpy | Simple messaging system for mobile game
A simple messaging system for texting-based mobile game, such as "LifeLine" or "Bury me, my Love"; it's based on the NVL mode and it's really easy to use!
It's a follow up of my previous phone system, but with a vertical layout and some other improvements, such as choices directly available in the phone interface.
Instruction
- This project is optimized for 1080x1920 resolution
- Add the images and *PhoneTexting.rpy* to your project
- In this file, change the name of the main character to yours (MC_Name)
- Edit the nvl screen in screen.rpy as follow:
screen nvl(dialogue, items=None): #### ADD THIS TO MAKE THE PHONE WORK!! :) ### if nvl_mode == "phone": use PhoneDialogue(dialogue, items) else: #### ## Indent the rest of the screen window: style "nvl_window" # ...
- Change gui.nvl_list_length in gui.rpy to None, so that all the message are shown
- Now you just have to make a NVL character speak :)
- To include emojis and pictures, you can simply use an image tag; make sure they are the right size for the phone screen.
⚠ Note that the rest of the UI is not optimized for vertical game; you'd have to edit most of the screens to provide a pleasant experience to the player. I hope this phone will be a good starting point tho!
(in this project I only increased the size of some text to make it testable)
Original post on Lemmasoft
Mirror download on my website
Full source code on Github
If you have any issue or question, please let me know! I hope this will help you!!
And if you need more help for your project, you can hire me as a programmer! :) ✨
Have a nice day!
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
Hi Nighten! Appreciate you making this and how customizable it is. Is there a way to make a header at the top of the screen that says the character name that you're currently speaking to? I've been having a little trouble trying to accomplish this.
Hey nighten , thank u soo much for releasing this. It's awesome!
That being said i just have one question,
how can i make so the background changes in different periods of times in the game?
Hi! Thank you for your comment
So I don't know your project but let's imagine you have a prologue, act 1 and act 2 and you want a different phone background for each of them.
You can have a variable "chapter" that will tell us where we are and change during the game:
And we can then edit the script in PhoneTexting.rpy to have a dynamic background instead. In line 158:
Replace the background by something like:
This mean that Renpy will automatically look for "phone_background_prologue.png", "phone_background_act1.png"... etc whenever you change the value of chapter!
Make sure to have the image created in your project and correctly named, and you should be good
NIGHTEENNN YOU ARE A GENIUSSS IT WORKEDDDDDD
THANKK UUU SOOOOOO MUCHHHHHHH
this will help me a lot.
HAVE AN AWESOMEE DAYYYY YOU ROCK!!!
try and build it yourself, the bug was fixed about a year after this project was released: https://github.com/renpy/renpyweb/pull/28
Very easy to use! I recommend it 100%! Fully customizable because it is open source.
Can I use this for 1280x720?
I'm just going to ask, Can we change the background mid-game? I'm having trouble implementing it!
Thank you for the amazing template :>
Hi, sorry for the late response; I just answered a similar question above:
Let's imagine you have a prologue, act 1 and act 2 and you want a different phone background for each of them.
You can have a variable "chapter" that will tell us where we are and change during the game:
And we can then edit the script in PhoneTexting.rpy to have a dynamic background instead. In line 158:
Replace the background by something like:
This mean that Renpy will automatically look for "phone_background_prologue.png", "phone_background_act1.png"... etc whenever you change the value of chapter!
Make sure to have the image created in your project and correctly named, and you should be good
Hi Nighten, we use your phone system in our game! (We hope that's okay because NSFW.) It's great, thanks for developing and sharing it. (We found the code on LSF.)
Kind regards
TOM
Thank you so much, this is amazing! Now I want to make a project just to use this~