Search found 40 matches

by sDextra
Fri Jul 05, 2019 11:50 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Hello! Sorry to bother, but I have a question ^^; How do I change the font of the game? I know how to change the font of the menu, narration and dialogue etc, but how do I change the text message fonts? Thank you! ^^ #images.rpy init -1000 python: style_font = 'fonts/tahoma.ttf' style_font_monospac...
by sDextra
Wed Jun 26, 2019 6:19 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Quick note that with testing, I can't use images over 580px height. Anything over displays skewed even if I use the pic_y argument properly. Would be amazing to get larger images supported, I'm probably gonna use this code heavily in a game. Trying to work now on implementing a calling system and s...
by sDextra
Mon Jun 24, 2019 6:12 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Also having an issue with an image that is 500 x 516 pixels displaying squashed. Included a screenshot and the original. https://i.imgur.com/cLZixMP.jpg https://i.imgur.com/OoYMbzJ.jpg This is because the standard aspect ratio is 16:9 Now I added setting a specific picture size (x,y) changes in mes...
by sDextra
Mon Jun 24, 2019 2:43 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

If I understand you correctly, you can try using this function: $ freeze() # your actions $ unfreeze() I actually ended up doing the below using the del_last_msg, as the freeze didn't work, it wouldn't unfreeze after taking a name, or wouldn't let me inout anything. The problem is that you type the...
by sDextra
Mon Jun 24, 2019 10:38 am
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Is it possible to stop the script progressing until the name input has been completed? If I understand you correctly, you can try using this function: $ freeze() # your actions $ unfreeze() Once I've put in the name, does it have to display as a text? I'd prefer to input the name, then on a new lin...
by sDextra
Fri May 03, 2019 6:25 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Hello! Can I make just one more question? hahah :oops: This is my audio channel: init python: renpy.music.register_channel("player", mixer='sfx', loop=False, stop_on_mute=True) And this is the messenger screen code: screen telegram(): frame background "messenger/back.png" xysize...
by sDextra
Fri Jan 11, 2019 5:13 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Do you know what this error means? While running game code: File "game/script.rpy", line 456, in script python: File "game/script.rpy", line 457, in <module> msg (None, sound="opening.mp3", who=1) TypeError: unsupported operand type(s) for -: 'ATLTransform' and 'float'...
by sDextra
Thu Jan 10, 2019 3:57 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

So the message would be: python: msg("Hello Anna!", p=3, who=1) And I did the same thing in this new code: def msg(txt, who=False, sound=False, pic=False, hm=False): if message_time: h,m = message_time hm = hm if hm else '%s:%s'%(h,m) time_update() hm = get_current_time() if message_time_...
by sDextra
Thu Jan 10, 2019 1:48 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Oh, ok. Got it. Thamk you! :) But now how I show the image inside the message? Because the messages are working this way, like the older code like: python: msg("Hello Anna!!", who=1) But in the new code it's like this (image and sound): $ msg (None, audio="opening", who=1) $ msg...
by sDextra
Thu Jan 10, 2019 12:40 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Sorry to bother you for the 100000000th time :oops: :lol: But is it possible to add that function that opens the image when you click on it + the time the message was sent/received, to the older messenger code? Only this two things. It's because I had already edited many labels and pictures accordi...
by sDextra
Wed Jan 09, 2019 10:39 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Sorry to bother you for the 100000000th time :oops: :lol: But is it possible to add that function that opens the image when you click on it + the time the message was sent/received, to the older messenger code? Only this two things. It's because I had already edited many labels and pictures accordi...
by sDextra
Mon Jan 07, 2019 9:32 am
Forum: Ren'Py Cookbook
Topic: [CODE] Tetris
Replies: 5
Views: 4807

Re: [CODE] Tetris

Hoho! This is a good tetris code! But is there any possible code that when you lose or when you win, The following character (or the narrator) will say such a thing? And plus sorry for my bad english. And thanks for the tetris code! :D You can add this to the 'end_turn' function, for example: def e...
by sDextra
Fri Jan 04, 2019 8:01 am
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Sorry to bother again, but how do I make the messenger (the one with group chat) stay in the middle of the screen? #images.rpy transform move_messenger(t=1.0): xalign .9 yalign .5 on show: xalign 1.5 easein t xalign .9 on hide: easeout t xalign 1.5 alpha 0 The default is 'xalign .9', you can replac...
by sDextra
Wed Jan 02, 2019 3:15 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Thank you SO much for this code! :) Sorry to bother you again :oops: :lol: But is it possible to "attach" the avatar to the "who"? Because in my game I let the player name all the characters. So this part won't work for me at all. self.avatar = 'messenger/av/'+name.lower().repla...
by sDextra
Wed Jan 02, 2019 12:11 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (4 version)
Replies: 123
Views: 41682

Re: telegram messenger (2 version)

Thank you! That's great! Edit: Sorry, but how would you get the input function to work in a text message? Like naming your character? Update to Messenger 1.3 Input function for name $ msg(None, name_input=True) GitHub Thank you SO much for this code! :) Sorry to bother you again :oops: :lol: But is...