Search found 27 matches

by andriodmactemporary
Tue Aug 03, 2021 5:54 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards image path with renpy.show() function
Replies: 8
Views: 1032

Re: Regards image path with renpy.show() function

Thanks, it worked, is there a way to specify image resolution with renpy.show(). I tried many ways and the only one that worked requires specifying the image path XD. image pic = im.Scale("images/pic.png", 300, 300) # <---- 300 x 300 pixels label start: $ renpy.show("pic") "...
by andriodmactemporary
Tue Aug 03, 2021 5:54 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards image path with renpy.show() function
Replies: 8
Views: 1032

Re: Regards image path with renpy.show() function

You don't want to use im.Scale - it's been undocumented for a bit now. Your best bet is to use renpy.show with an at_list: $ renpy.show("pic", at_list=[ Transform(size=(300, 300)) ]) Note that using renpy.show usually means you're doing something wrong, as it doesn't allow images to be pr...
by andriodmactemporary
Mon Aug 02, 2021 6:04 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards image path with renpy.show() function
Replies: 8
Views: 1032

Re: Regards image path with renpy.show() function

Thanks, it worked, is there a way to specify image resolution with renpy.show().
by andriodmactemporary
Sun Aug 01, 2021 12:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards image path with renpy.show() function
Replies: 8
Views: 1032

[Solved] Regards image path with renpy.show() function

To show an image we use renpy.show(bg beach") where "bg beach" will be defined as: image bg beach: "beach.jpg". But how to use renpy.show() with directly giving image path to the function. Like, I have image "Pic.jpg" in game/images folder I have tried renpy.show(&...
by andriodmactemporary
Sun Aug 01, 2021 12:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards Changing Background Scene Using Python
Replies: 6
Views: 1204

Re: Regards Changing Background Scene Using Python

No, it is not working. I have image "Pic.jpg" in game/images folder I have tried renpy.show("game/images/Pic.jpg"), renpy.show("images/Pic.jpg"), and renpy.show("Pic.jpg") with renpy.scene() before this statement, but it is not showing the image it is only sho...
by andriodmactemporary
Thu Jul 29, 2021 9:07 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards Changing Background Scene Using Python
Replies: 6
Views: 1204

Re: Regards Changing Background Scene Using Python

Thanks for the reply, but how can I achieve renpy.show(filename) instead of defining "image bg image"
by andriodmactemporary
Wed Jul 28, 2021 8:44 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Regards Changing Background Scene Using Python
Replies: 6
Views: 1204

[Solved] Regards Changing Background Scene Using Python

We could change the background scene with Renpy by using "scene bg image", but how to attain this functionality using Python?

Thanks in Advance.
by andriodmactemporary
Sun May 30, 2021 6:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with phone messaging system
Replies: 0
Views: 1262

Help with phone messaging system

I have created a messaging system in which each message is displayed with an HBOX, and messages are stored in a dictionary field of array type data structure. Whenever I want to add a new message, I will append that message to the dictionary field array. Then due to for loop messages hbox's will be ...
by andriodmactemporary
Thu May 13, 2021 10:25 am
Forum: Ren'Py Questions and Announcements
Topic: Regards Python execution pause for a certain amount of seconds
Replies: 6
Views: 1018

Re: Regards Python execution pause for a certain amount of seconds

Can you replace it with a series of one-line Python statements (and use renpy.pause) and check if it fixes the problem. IIRC python blocks are considered single statement, so there could be your problem. No use, the same problem is occurring it is waiting entirely for 6 seconds and redrawing the sc...
by andriodmactemporary
Thu May 13, 2021 4:58 am
Forum: Ren'Py Questions and Announcements
Topic: Regards Python execution pause for a certain amount of seconds
Replies: 6
Views: 1018

Re: Regards Python execution pause for a certain amount of seconds

Ocelot wrote: Wed May 12, 2021 2:45 pm Is this a part of function or just written in script? Is it a part of a single Python statement?
It is wrapped under python block.
by andriodmactemporary
Tue May 11, 2021 4:30 pm
Forum: Ren'Py Questions and Announcements
Topic: Regards Python execution pause for a certain amount of seconds
Replies: 6
Views: 1018

Re: Regards Python execution pause for a certain amount of seconds

Well, this code actually works exactly as you want. If you were to inspect list values you would see that they are exactly what you would expect at any given moment. What you really see is that you probaly do not see any screens redrawing. This is because nothing in the code is telling RenPy "...
by andriodmactemporary
Tue May 11, 2021 2:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Regards Python execution pause for a certain amount of seconds
Replies: 6
Views: 1018

Regards Python execution pause for a certain amount of seconds

Here from the code how to pause the code execution for a certain amount of seconds after each line of execution. If I employ this method program combining all the seconds (2+2+2 = 6 seconds) and pausing the program only once for 6 seconds. But, I need to pause the program 2 seconds after appending a...
by andriodmactemporary
Wed Apr 07, 2021 8:54 am
Forum: Ren'Py Questions and Announcements
Topic: (Solved) Regards view of view box
Replies: 2
Views: 347

Re: (Solved) Regards view of view box

https://i.ibb.co/PjSXZHV/Capture.png Here has shown in the image, how can I take the view of the viewport scroll to the end when I enter the screen which contains that respective viewport every time? Set the yinitial property of the viewport to 1.0, like viewport id "vp": draggable True y...
by andriodmactemporary
Wed Apr 07, 2021 8:45 am
Forum: Ren'Py Questions and Announcements
Topic: (Solved) Regards vpgrid with indefinite children sizes
Replies: 8
Views: 596

Re: (Solved) Regards vpgrid with indefinite children sizes

Ocelot wrote: Tue Apr 06, 2021 11:27 am has vbox is just a shorthand for writing vbox: and indenting everything below one level. Also I was bored and made message window autoscroll to the bottom when new message is added. Post if you need it.
Thanks a lot for the clarification, also, I have logic for auto-scrolling so, thanks.