Search found 244 matches

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: 189

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: 67
Views: 4638

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: 67
Views: 4638

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: 67
Views: 4638

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: 67
Views: 4638

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: 67
Views: 4638

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: How to make a separate button to this function (textbutton/imagebutton)?
Replies: 6
Views: 121

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...
by Nanahs
Thu Jan 10, 2019 7:52 am
Forum: Ren'Py Questions and Announcements
Topic: How to make a separate button to this function (textbutton/imagebutton)?
Replies: 6
Views: 121

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

The action should be identical. A textbutton is a button, and am imagebutton is a button. Any action a textbutton can use, an imagebutton can too, since they're both buttons. Alternatively, you could use a button and supply both an image and text (if desired) and use it in the same way. Oh, ok. I j...
by Nanahs
Thu Jan 10, 2019 7:14 am
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 67
Views: 4638

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 Nanahs
Wed Jan 09, 2019 8:31 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a separate button to this function (textbutton/imagebutton)?
Replies: 6
Views: 121

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

sorry for my english, you just want to add some text to imagebuttons ? if yes, you can add text directly to images. Hello! Actually I'm trying to discover how to adjust the action from that imagebutton to a textbutton. I know this one: textbutton _("choice") action SetField(persistent, "variable", ...
by Nanahs
Wed Jan 09, 2019 7:59 pm
Forum: Ren'Py Cookbook
Topic: telegram messenger (2 version)
Replies: 67
Views: 4638

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 accordin...
by Nanahs
Tue Jan 08, 2019 7:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Game doesn't launch when I define the image like that?
Replies: 2
Views: 127

Re: Game doesn't launch when I define the image like that?

mitoky wrote:
Mon Jan 07, 2019 7:51 pm
Things should be defined outside of labels:

Code: Select all

image sunnypark1:
    "places/sunnypark1.png"
    pos (130,490) 
    zoom .3

label start:
    scene park
    show screen sunshine
    show sunnypark1
Also only show things by the names defined, hence only "show sunnypark1"
Thank you so much! :)
by Nanahs
Tue Jan 08, 2019 7:26 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a separate button to this function (textbutton/imagebutton)?
Replies: 6
Views: 121

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

I'm using this code to let the player choose their bedroom background: default bdr = 'a' image bedroom = 'bedroom[bdr].jpg' screen chosebedroom(): text 'Choose your bedroom.' align(.7, .3) hbox at truecenter: spacing 7 imagebutton idle im.FactorScale('bedrooma.jpg', .2) action SetVariable('bdr', 'a'...
by Nanahs
Mon Jan 07, 2019 7:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Reset game totally (going back to splashscreen)?
Replies: 4
Views: 125

Re: Reset game totally (going back to splashscreen)?

Karl_C wrote:
Mon Jan 07, 2019 1:42 am

Code: Select all

$persistent._clear(progress=True)
will also resets things like the list of seen statements (used for skipping) and the list of seen images (but not the saves).
Thank you so much! :)
by Nanahs
Mon Jan 07, 2019 7:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Game doesn't launch when I define the image like that?
Replies: 2
Views: 127

Game doesn't launch when I define the image like that?

I have some images that are really big. And I need to resize them on the game itself. So I tried: label start: image sunnypark1: "places/sunnypark1.png" pos (130,490) zoom .3 scene park show screen sunshine show image "sunnypark1" I need to set the position and the "zoom .3" to make it smaller. But ...