Search found 10 matches
- Tue Jun 25, 2019 4:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [FIXED] A weird screen behavior in 7.3.0 compared to the 7.2.2
- Replies: 2
- Views: 800
[FIXED] A weird screen behavior in 7.3.0 compared to the 7.2.2
After updating from Renpy 7.2.2 to 7.3.0 I have encountered a weird bug in my game. I have a set of buttons used to display pages. Each of 4 buttons in set supposed to display its index number and it was working fine in 7.2.2: renpy722.png But in the 7.3.0 each page is displaying the last index numb...
- Mon Feb 11, 2019 3:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Zooming image inside of the drag
- Replies: 5
- Views: 540
Re: Zooming image inside of the drag
So, with the help of Renpytom on discord I have found a solution. I do not understand it fully, but it works, so who am I to complain? As Renpytom explained - problem was caused by using xpos within the drag. And when I adjusted the anchor , without also adjusting the pos , I've put things in a weir...
- Fri Feb 08, 2019 12:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Zooming image inside of the drag
- Replies: 5
- Views: 540
Re: Zooming image inside of the drag
Not tested, but what if add anchor property not for image but for draggable object? drag: drag_name "Card 1" child "card_1" hovered SetVariable("card_1_hover", True) unhovered SetVariable("card_1_hover", False) draggable True droppable False if card_1_hand_po...
- Fri Feb 08, 2019 11:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Zooming image inside of the drag
- Replies: 5
- Views: 540
Re: Zooming image inside of the drag
Maybe: drag_handle (x, y, width, height) drag_handle (-0.5, -0.5, 1.0, 1.0) # floats are relative to child size Looks like any drag_handle other then (0.0, 0.0, 1.0, 1,0) is making available for dragging area smaller. Changing x or y between -0.99 and 0.99 is shrinking the area in different directi...
- Fri Feb 08, 2019 10:09 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Zooming image inside of the drag
- Replies: 5
- Views: 540
[SOLVED] Zooming image inside of the drag
I'm trying to make sort-of card-battle game. But I'm a little bit stuck with the drag screen. I want card to zoom/enlarge when it's being hovered or dragged. I got it partly working: init: image card = "/battle_system/card.png" image bg = "/battle_system/bg.png" image card_1_txt ...
- Fri Apr 20, 2018 1:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: 'use' statement with a variable
- Replies: 1
- Views: 280
'use' statement with a variable
Hello! I'm having troubles with screens again. Let's say I want to let player pick a class. And after that I want to show him a button - different one for each class. So right now working code looks like this: init: image template_image = "/gui/window_icon.png" screen warrior_screen: a...
- Tue Apr 17, 2018 5:56 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Several displayables on buttons inside of hbox. [SOLVED]
- Replies: 2
- Views: 396
Re: Several displayables on buttons inside of hbox.
That did the trick, thanks!
Still, I wonder if stretching button to the end of the screen, when several displayables added to it, is an intended behaviour or a bug.
Still, I wonder if stretching button to the end of the screen, when several displayables added to it, is an intended behaviour or a bug.
- Tue Apr 17, 2018 8:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: Several displayables on buttons inside of hbox. [SOLVED]
- Replies: 2
- Views: 396
Several displayables on buttons inside of hbox. [SOLVED]
Hi! I was trying to make a bunch of buttons inside of the hbox. While I'm using only one text line or one image per button everything looks as expected: init: image random_icon = "/gui/window_icon.png" screen test_frame: frame: xsize 750 ysize 270 use test_buttons screen test_buttons: hbox...
- Mon Sep 04, 2017 9:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: Align displayable inside of LiveComposite [SOLVED]
- Replies: 2
- Views: 596
Re: Align displayable inside of LiveComposite
That worked perfectly, thank you so much! I already had styles applied to the text, but totally missed the properties I needed the most. I'm using these images as buttons inside of choice menu, and numbers on the images are displaying stats of each choice (like "damage" or "healing&qu...
- Sat Sep 02, 2017 11:58 am
- Forum: Ren'Py Questions and Announcements
- Topic: Align displayable inside of LiveComposite [SOLVED]
- Replies: 2
- Views: 596
Align displayable inside of LiveComposite [SOLVED]
I'm trying to composite a bunch on numbers on top of an image(-s). I kinda managed to do so, but the problem with alignment popped up. I placed variables with an eye on single-digit numbers: https://i.imgur.com/tktxCb9.png But if variables are getting bigger or if variable values are decimal, text w...