Search found 18 matches
- Sun Oct 30, 2022 6:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: Detecting images on contact
- Replies: 1
- Views: 64
Re: Detecting images on contact
As far as I know, Renpy doesn't support collision. But for simple skeet shooting, I use the code for one point. init python: def get_opaque(img, x=None, y=None): rv = renpy.render(renpy.displayable(img), config.screen_width, config.screen_height, 0, 0) w, h = rv.get_size() w, h = int(w), int(h) if x...
- Sun Oct 30, 2022 1:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I return the width of an image?
- Replies: 8
- Views: 2270
Re: Can I return the width of an image?
init python: def get_size(displayable): w, h = renpy.render(displayable, config.screen_width, config.screen_height, 0, 0).get_size() return int(w), int(h) What are you trying to do? THANK YOU VERY MUCH! I'm trying to make my analogue of the NVL mode in the form of books with two pages on the screen...
- Sat Oct 29, 2022 7:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I return the width of an image?
- Replies: 8
- Views: 2270
Re: Can I return the width of an image?
I still haven't found an answer. Can anyone help? https://s1.hostingkartinok.com/uploads/images/2022/10/d8569913e51908be7e2feae43ab95084.jpg init python: def get_size(displayable): w, h = renpy.render(displayable, 0, 0, 0, 0).get_size() return int(w), int(h) box = Crop((0, 0, 580, 280), "#fff4") lab...
- Fri Oct 21, 2022 12:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to use the 3D Stage to draw a 3D box?
- Replies: 0
- Views: 166
How to use the 3D Stage to draw a 3D box?
I tried to draw a 3d box on a 3d scene but failed... When using RotateMatrix angle != 0, sprites move far to the side. The same thing happens when using an OffsetMatrix. (It’s also sad that linear and ease doesn’t work when using matrix transformations.) I want to make a scene where you can go behin...
- Mon Apr 11, 2022 4:23 am
- Forum: Ren'Py Cookbook
- Topic: [CODE] Renpystein Pseudo 3D with Ray casting
- Replies: 19
- Views: 16583
- Mon Mar 23, 2020 2:23 am
- Forum: Ren'Py Questions and Announcements
- Topic: Does Ren'Py support Live 2D?
- Replies: 141
- Views: 38593
Re: Does Ren'Py support Live 2D?
Live2d works. But saves crashes. т____т
- Sat Dec 08, 2018 10:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Get image position in python?
- Replies: 11
- Views: 2797
Re: Get image position in python?
renpy.display.core.displayable_by_tag() How to use it with SCREENS? init: transform walk_to(x1, x2, t=5.0): xpos x1 linear t xpos x2 screen test: add "kid" at walk_to(200, 400) id "kid" label start: show screen test pause return renpy.display.core.displayable_by_tag("screens", "kid") returns None r...
- Thu Feb 09, 2017 12:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: Quick menu above the saybox
- Replies: 5
- Views: 564
Re: Quick menu above the saybox
To do it programmatically you have to... Do a void frame. Insert a vbox. Insert an hbox with buttons (but DON'T call it quick_menu in any reference). THEN add the window with the proper id and all his own usual elements. It still does not work T___T First click is for finish cps... vbox: style "say...
- Wed Feb 08, 2017 4:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Quick menu above the saybox
- Replies: 5
- Views: 564
Re: Quick menu above the saybox
Maybe, just place your quickmenu above the saybox by coordinate. For this you need to know the height of scalable saybox. Does anyone knows how to get it?
- Sun Apr 24, 2016 12:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: re: On Asking Questions
- Replies: 113
- Views: 14029
android+focus_mask
In imagebutton «focus_mask True» does not work on Android OS. Is it a global problem or it's just my luck?
- Sat Mar 19, 2016 10:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py 6.99.9 Released
- Replies: 20
- Views: 3117
Re: Ren'Py 6.99.9 Released
sanx! now i know it's problem on my side.xela wrote:Nothing to do with a release and doesn't seem to be anything wrong with animations. Are you showing this in a way that it appears at/after st == 3?
...
windows registry cleaning solved the problem!
- Sat Mar 19, 2016 8:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py 6.99.9 Released
- Replies: 20
- Views: 3117
Re: Ren'Py 6.99.9 Released
this animation starts with last frame (but i need to start with first frame): image img = Animation("img1", 1.0, "img2", 1.0, "img3", 1.0) this animation without loop starts and finished with last frame only: image img: "img1" 1.0 "img2" 1.0 "img3" what's wrong with animation?
- Sat Dec 05, 2015 10:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I return the width of an image?
- Replies: 8
- Views: 2270
Re: Can I return the width of an image?
unfortunately it doesn't working if using «build.classify('game/**', 'archive')» to hide game content.PyTom wrote:Code: Select all
renpy.image_size("foo.jpg")
- Tue Jul 29, 2014 9:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: re: On Asking Questions
- Replies: 113
- Views: 14029
Re: On Asking Questions
fall down:PsychoNexus wrote:i want to make the character fall down but i didn't find it anywhere and how to make the screen shake ?
Code: Select all
hide PsychoNexus with moveoutbottomhttp://www.renpy.org/wiki/renpy/doc/coo ... ake_effect
- Tue Jul 29, 2014 8:10 pm
- Forum: Ren'Py Questions and Announcements
- Topic: HideInterface() exceptions - is it possible?
- Replies: 0
- Views: 291
HideInterface() exceptions - is it possible?
i'm trying to make a screen with an easter eggs (to view secret stories. and some items to collect it). it can located behind the text window. i want to hide a text box by click out of text box. action HideInterface() . but my easter_eggs screen hiding too. and it's sad. i'm using Show()/Hide() . bu...

