Search found 297 matches

by Nanahs
Tue Jan 29, 2019 9:44 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to create a "don't show screen" option?
Replies: 1
Views: 221

Is it possible to create a "don't show screen" option?

I programmed my game to show screens with messages like "Merry Christmas", "Happy New Year", etc. That's easy to create a button with "toggle screen" function to show and hide. But as soon the the person clicked on that label again, the screen would appear again. And the person would have to click t...
by Nanahs
Sat Jan 26, 2019 6:30 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to delete/add borders around textbutton?
Replies: 2
Views: 215

Re: How to delete/add borders around textbutton?

Kia wrote:
Fri Jan 25, 2019 1:27 pm
for the buttons and

Code: Select all

background None
for the frame containing them

Code: Select all

background Frame("line_frame.png", 10,10)

you can also use style_prefix for easier styling
Thank you so much! :)
by Nanahs
Wed Jan 23, 2019 8:59 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to make a label playable only once a day?
Replies: 6
Views: 319

Re: Is it possible to make a label playable only once a day?

I'm not a pro but the simpliest thing I could think of if you DON'T want to make this depending on realtime, is you could simply add a variable that stores if the messages was read and reset it every day: if message_read==0: "Lucky Message" $ message_read = 1 else: "You've already read today's luck...
by Nanahs
Wed Jan 23, 2019 8:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to delete/add borders around textbutton?
Replies: 2
Views: 215

[Solved] How to delete/add borders around textbutton?

I thought of changing the borders on gui, but I think it would change all borders, right? First I have this screen: screen leavechangeroom(): textbutton '{size=30}Leave{/size}' action Jump("menu2") textbutton '{size=30}Configuration{/size}' action Jump("configurationmenu") On pc version there are no...
by Nanahs
Mon Jan 21, 2019 6:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to make a label playable only once a day?
Replies: 6
Views: 319

Is it possible to make a label playable only once a day?

I created a "special menu" on my game. I was thinking of adding an option (button) called like "Read Today's luck", something like this. When you clicked, you would play a label that would show you a message. Something like "It's a good day to send flowers to Anna." I'd make many different labels an...
by Nanahs
Fri Jan 18, 2019 6:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Textbox size/dimensions on Android game?
Replies: 2
Views: 154

Re: Textbox size/dimensions on Android game?

rayminator wrote:
Fri Jan 18, 2019 5:49 pm
In gui.rpy look for

line434

Code: Select all

gui.textbox_height = 240
adjust the 240 to what you want it to be

line 442

Code: Select all

gui.choice_button_width = 1240
adjust the 1240 to what you want it to be
Thank you so much! :)
by Nanahs
Fri Jan 18, 2019 5:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Textbox size/dimensions on Android game?
Replies: 2
Views: 154

[Solved] Textbox size/dimensions on Android game?

On pc the choice menu looks alright. Like this: https://i.ibb.co/KL3B2CL/1a.png But on Android it looks like that: https://i.ibb.co/G09MV5d/1a2.png It there a way to "fix" the Android version and make it look like the pc one? That wouldn't be a problem at all, but there are images and borders on my ...
by Nanahs
Sun Jan 13, 2019 7:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is there a way I can let the player choose the background they want?
Replies: 4
Views: 718

Re: [solved] Is there a way I can let the player choose the background they want?

A little help? between textbutton's action and imagebutton's action is no special difference. https://renpy.org/doc/html/screens.html#imagebutton https://renpy.org/doc/html/screens.html#textbutton https://renpy.org/doc/html/screens.html#button screen choscene(): modal True text 'Choose your bedroom...
by Nanahs
Fri Jan 11, 2019 10:34 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 118
Views: 15114

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' It shows up whenever I try to...
by Nanahs
Fri Jan 11, 2019 2:39 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 118
Views: 15114

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' It shows up whenever I try to ...
by Nanahs
Fri Jan 11, 2019 12:13 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 118
Views: 15114

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_current el...
by Nanahs
Thu Jan 10, 2019 3:16 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 118
Views: 15114

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 (None, pic="crow", ...
by Nanahs
Thu Jan 10, 2019 1:36 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 118
Views: 15114

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 (None, pic="crow", w...
by Nanahs
Thu Jan 10, 2019 8:04 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] How to make a separate button to this function (textbutton/imagebutton)?
Replies: 6
Views: 290

Re: How to make a separate button to this function (textbutton/imagebutton)?

textbutton "The Text Bit": # maybe some styles or style name to adjust positions of each part idle_background "background_image.png" # maybe with hover_ etc etc # this goes below the text idle_foreground "bedrooma.png" # maybe with hover_ as well etc # this goes above focus_mask "some_image_to_defi...