telegram messenger (2 version)

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
Andredron
Veteran
Posts: 205
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: telegram messenger

#16 Post by Andredron » Fri Aug 31, 2018 1:21 am

Nanahs wrote:
Thu Aug 30, 2018 6:25 pm
Andredron wrote:
Mon Aug 27, 2018 6:23 pm
Nanahs wrote:
Mon Aug 27, 2018 5:44 pm
Thank you so much Andredom! If I use the codes, I'll give you credit :)

Please do not need to publish me, he's an author Valentin Bez'chanuk, he's just busy, that would personally write in the forum
Hello! Silly question, but how can I place the phone in the middle of the screen?
Whenever I try to do that I get an error message.

Code: Select all

# screen and coordinate
screen telegram():
    frame background "messenger/back.png" xysize (600,975) align (0.9,.5):
        frame background None xysize (560, 810) align (0.5,0.58):
            viewport id "vp_msg" mousewheel True  yadjustment yadj:
                vbox spacing 15 xsize 550 xalign 0.4 box_reverse True:
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Nanahs
Regular
Posts: 144
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: telegram messenger

#17 Post by Nanahs » Fri Aug 31, 2018 10:49 am

Thank you so much! :)

Nanahs
Regular
Posts: 144
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: telegram messenger

#18 Post by Nanahs » Fri Aug 31, 2018 11:50 am

Andredron wrote:
Fri Aug 31, 2018 1:21 am
Nanahs wrote:
Thu Aug 30, 2018 6:25 pm
Andredron wrote:
Mon Aug 27, 2018 6:23 pm



Please do not need to publish me, he's an author Valentin Bez'chanuk, he's just busy, that would personally write in the forum
Hello! Silly question, but how can I place the phone in the middle of the screen?
Whenever I try to do that I get an error message.

Code: Select all

# screen and coordinate
screen telegram():
    frame background "messenger/back.png" xysize (600,975) align (0.9,.5):
        frame background None xysize (560, 810) align (0.5,0.58):
            viewport id "vp_msg" mousewheel True  yadjustment yadj:
                vbox spacing 15 xsize 550 xalign 0.4 box_reverse True:
I tried putting the game on vertical screen 720x1280 to make it look like a phone screen (only the phone screen would show up), but I just made it more confused and crashed hah But thank you so much! I'll use it as it was before. Thank you for your help :)

User avatar
Andredron
Veteran
Posts: 205
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: telegram messenger

#19 Post by Andredron » Fri Aug 31, 2018 3:10 pm

Nanahs wrote:
Fri Aug 31, 2018 11:50 am
Andredron wrote:
Fri Aug 31, 2018 1:21 am
Nanahs wrote:
Thu Aug 30, 2018 6:25 pm


Hello! Silly question, but how can I place the phone in the middle of the screen?
Whenever I try to do that I get an error message.

Code: Select all

# screen and coordinate
screen telegram():
    frame background "messenger/back.png" xysize (600,975) align (0.9,.5):
        frame background None xysize (560, 810) align (0.5,0.58):
            viewport id "vp_msg" mousewheel True  yadjustment yadj:
                vbox spacing 15 xsize 550 xalign 0.4 box_reverse True:
I tried putting the game on vertical screen 720x1280 to make it look like a phone screen (only the phone screen would show up), but I just made it more confused and crashed hah But thank you so much! I'll use it as it was before. Thank you for your help :)
screen telegram():
frame background "messenger/back.png" xysize (600,975) align (0.9,.5):


align (0.5,.5)
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Nanahs
Regular
Posts: 144
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: telegram messenger

#20 Post by Nanahs » Fri Aug 31, 2018 4:47 pm

Thank you sooo much! :D

Nanahs
Regular
Posts: 144
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: telegram messenger

#21 Post by Nanahs » Sun Sep 02, 2018 3:44 pm

Andredron wrote:
Fri Aug 31, 2018 3:10 pm
Nanahs wrote:
Fri Aug 31, 2018 11:50 am
Andredron wrote:
Fri Aug 31, 2018 1:21 am


Code: Select all

# screen and coordinate
screen telegram():
    frame background "messenger/back.png" xysize (600,975) align (0.9,.5):
        frame background None xysize (560, 810) align (0.5,0.58):
            viewport id "vp_msg" mousewheel True  yadjustment yadj:
                vbox spacing 15 xsize 550 xalign 0.4 box_reverse True:
I tried putting the game on vertical screen 720x1280 to make it look like a phone screen (only the phone screen would show up), but I just made it more confused and crashed hah But thank you so much! I'll use it as it was before. Thank you for your help :)
screen telegram():
frame background "messenger/back.png" xysize (600,975) align (0.9,.5):


align (0.5,.5)
Hello! Is it possible to make the messages skip automatically? So that could give you the impression of being in a real time chat? I tried using "{w=2.0}{nw}" with the messages, but it didn't work. Once again, thank you so much for your help and sorry for making so many questions :D

User avatar
Andredron
Veteran
Posts: 205
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: telegram messenger

#22 Post by Andredron » Mon Sep 03, 2018 4:40 pm

Nanahs wrote:
Sun Sep 02, 2018 3:44 pm
Andredron wrote:
Fri Aug 31, 2018 3:10 pm
Nanahs wrote:
Fri Aug 31, 2018 11:50 am


I tried putting the game on vertical screen 720x1280 to make it look like a phone screen (only the phone screen would show up), but I just made it more confused and crashed hah But thank you so much! I'll use it as it was before. Thank you for your help :)

screen telegram():
frame background "messenger/back.png" xysize (600,975) align (0.9,.5):


align (0.5,.5)
Hello! Is it possible to make the messages skip automatically? So that could give you the impression of being in a real time chat? I tried using "{w=2.0}{nw}" with the messages, but it didn't work. Once again, thank you so much for your help and sorry for making so many questions :D
Image

2 version message telegram(gui)

http://renpyfordummies.blogspot.com/201 ... i.html?m=1

Alt version Renpy
http://renpyfordummies.blogspot.com/201 ... t.html?m=1
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

User avatar
Morhighan
Miko-Class Veteran
Posts: 918
Joined: Sun Jun 27, 2010 12:54 pm
Completed: AIdol, When Our Journey Ends
Projects: Connection Pending
Tumblr: MysteryCorgi
Deviantart: MysteryCorgi
Soundcloud: MysteryCorgi
itch: MysteryCorgi
Location: USA
Contact:

Re: telegram messenger (2 version)

#23 Post by Morhighan » Tue Sep 04, 2018 4:38 am

The update looks really neat! I can't wait to try it out. Thank you for your hard work!

zeroTheHero
Regular
Posts: 28
Joined: Mon May 07, 2018 10:49 am
Contact:

Re: telegram messenger (2 version)

#24 Post by zeroTheHero » Thu Sep 13, 2018 12:11 pm

Valentin. seriously, thanks a bunch for taking the time to make this. Studying it has helped me understand sooo many things. I hope the book you're writing on renpy is a smashing success!
And thank you too, Andredon, for posting this, and also taking the time to message me it's link. It was just what I was looking for, and it's saved me many hours of slogging.
Both of you should have a drink, I say XD

User avatar
Andredron
Veteran
Posts: 205
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: telegram messenger (2 version)

#25 Post by Andredron » Fri Sep 14, 2018 5:17 pm

Please, whoever can check both versions how they work on android and iphone. Friend wrote: a bug and the image does not show
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Nanahs
Regular
Posts: 144
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: telegram messenger (2 version)

#26 Post by Nanahs » Tue Sep 25, 2018 8:26 pm

The second version is also great! :D

Nanahs
Regular
Posts: 144
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: telegram messenger (2 version)

#27 Post by Nanahs » Mon Oct 01, 2018 8:35 pm

Andredron wrote:
Fri Sep 14, 2018 5:17 pm
Please, whoever can check both versions how they work on android and iphone. Friend wrote: a bug and the image does not show
Hello! On the first version of the messenger, can I have different message boxes? Like, the gray one for the character that's talking to you, and yours be another color? (green, blue, etc).
How could I add this? (if possible)
Thanks :)

zeroTheHero
Regular
Posts: 28
Joined: Mon May 07, 2018 10:49 am
Contact:

Re: telegram messenger (2 version)

#28 Post by zeroTheHero » Tue Oct 09, 2018 11:07 am

Hey, how do I make the text in messenger in italics?

User avatar
Andredron
Veteran
Posts: 205
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: telegram messenger (2 version)

#29 Post by Andredron » Wed Oct 10, 2018 1:16 am

zeroTheHero wrote:
Tue Oct 09, 2018 11:07 am
Hey, how do I make the text in messenger in italics?
Text tag

"{i} text{\i}"
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

zeroTheHero
Regular
Posts: 28
Joined: Mon May 07, 2018 10:49 am
Contact:

Re: telegram messenger (2 version)

#30 Post by zeroTheHero » Thu Oct 11, 2018 8:29 am

Andredron wrote:
Wed Oct 10, 2018 1:16 am
zeroTheHero wrote:
Tue Oct 09, 2018 11:07 am
Hey, how do I make the text in messenger in italics?
Text tag

"{i} text{\i}"
I tried

Code: Select all

msg("Привет,{i} text{\i} всё хорошо, а как у тебя?")
but no dice

Code: Select all

Exception: unknown text tag u'\\i'
It'd be amazing if we could use {w} and {b} and all the other cool tags in this...

Thanks for your time ^_^

Post Reply

Who is online

Users browsing this forum: No registered users