Search found 68 matches

by newbiemate
Thu Apr 11, 2019 6:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Rotating an image shifts its position
Replies: 3
Views: 67

Rotating an image shifts its position

I show an image, but then when I rotate it the image will shift its position slightly down. Here is an example: I've declared an image with a transform: image box: xpos 200 ypos 200 zoom 0.5 xanchor 0 yanchor 0 "images/textbox1.png" transform turn: xpos 200 linear 50 xpos 1000 xanchor 0 yanchor 0 ro...
by newbiemate
Tue Mar 26, 2019 7:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Keep showing dialogbox until imagebuttons are clicked?
Replies: 5
Views: 114

Re: Keep showing dialogbox until imagebuttons are clicked?

Ah thanks, I'll take a look. I was also going over my code and I feel like something is fundamentally not correct... I found out why I'm getting None . It's because I use show screen instead of call screen : If the screen was called using the call screen statement, the return value is placed in the ...
by newbiemate
Mon Mar 25, 2019 11:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Keep showing dialogbox until imagebuttons are clicked?
Replies: 5
Views: 114

Re: Keep showing dialogbox until imagebuttons are clicked?

Thank you! Can you explain two things, so I can understand a bit better? 1) What does modal True do, and is it always needed when building imagebutton menus? 2) I did this to see what _return was giving me: me "Please pick what you think is a table!" $ print(_return) But this is printing None , so i...
by newbiemate
Mon Mar 25, 2019 8:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Keep showing dialogbox until imagebuttons are clicked?
Replies: 5
Views: 114

Keep showing dialogbox until imagebuttons are clicked?

Normally a dialogbox will disappear once the user clicks the viewport in order to progress forward with the game. However, I wanted to add more interactivity by asking the player a question and having the player pick a couple of options (represented as imagebuttons). The issue is, when the dialog ha...
by newbiemate
Sun Mar 24, 2019 4:57 pm
Forum: Ren'Py Questions and Announcements
Topic: pausing hard in a transform?
Replies: 4
Views: 134

Re: pausing hard in a transform?

That will pause after the transform has run. I was wondering how to pause hard inside the transform, so that the player cannot skip the animation when they click the mouse.

Any ideas?
by newbiemate
Wed Mar 20, 2019 9:02 pm
Forum: Ren'Py Questions and Announcements
Topic: pausing hard in a transform?
Replies: 4
Views: 134

pausing hard in a transform?

In a transform block, how can I pause hard? transform myts: linear 0.3 xpos 39 ypos 800 pause 1.0 # pause hard True ? linear 0.3 xpos 39 ypos 200 pause 1.0 # pause hard True ? label myl: show image "images/a.png" at myts How can I pause hard=True in the transform above?
by newbiemate
Thu Mar 14, 2019 8:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to correctly align a Character textbox using a custom image?
Replies: 3
Views: 110

Re: How to correctly align a Character textbox using a custom image?

Hi, I really don't understand your response. Which question are you trying to answer?
by newbiemate
Thu Mar 14, 2019 1:21 am
Forum: Ren'Py Questions and Announcements
Topic: How to correctly align a Character textbox using a custom image?
Replies: 3
Views: 110

How to correctly align a Character textbox using a custom image?

I'm playing around with custom dialog textboxes, and I found a way to render my own image for the textbox: define j1 = Character('John Doe', window_yalign=1.0, window_xalign=0.5, who_yoffset=-50, color = '#99FF33', window_background="textbox3.png", what_color="#000") I recreated "textbox3.png" to be...
by newbiemate
Wed Mar 13, 2019 10:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Cannot change dialogue box in-game.
Replies: 0
Views: 64

Cannot change dialogue box in-game.

I have three different dialogue box images I'd like to display depending on game conditions. I implemented a suggestion by @pytom in 2009: https://lemmasoft.renai.us/forums/viewtopic.php?p=70175#p70175 However it doesn't seem to work for me, and I'm not sure if this is outdated information. This is ...
by newbiemate
Tue Mar 12, 2019 10:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Show two images as a scene at once?
Replies: 2
Views: 64

Show two images as a scene at once?

I have two images that make up a scene, one image is the left half, the other image is the right half. I have it set up this way because depending on the global variables I have, the two images could be different. From the documentation it seems like I can only specify one image as a scene, is there...
by newbiemate
Fri Mar 08, 2019 2:23 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I scale an image from its center?
Replies: 6
Views: 84

Re: How can I scale an image from its center?

Can you help explain how you got 200x200? If your image is 75x150, and I want to put your image at x=50,y=50, how did you come up with the offset 200?

If my image is 400x600, and I want it at x=50,y=50, what would my offset be?
by newbiemate
Fri Mar 08, 2019 11:45 am
Forum: Ren'Py Questions and Announcements
Topic: How can I scale an image from its center?
Replies: 6
Views: 84

How can I scale an image from its center?

How can I scale an image from the center? Right now I have: transform scaleup(): xpos 50 ypos 50 zoom 0.5 linear 1.1 zoom 0.8 screen showme(): add "images/cloud.png" at scaleup() However that code will scale the image from the top left corner. I would like to scale out from the center of the image, ...
by newbiemate
Mon Mar 04, 2019 9:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to change xzoom/yzoom for different states in an ImageButton?
Replies: 2
Views: 58

Is there a way to change xzoom/yzoom for different states in an ImageButton?

An ImageButton allows us to define different image filepaths depending on what state it's in: "idle", "hover", "selected_idle", etc. How can I also change the xzoom and yzoom of "idle" image, and change it to something else when it's in a "hover" state? Is this possible with an ImageButton? Basicall...
by newbiemate
Thu Feb 07, 2019 11:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Return variable from a label?
Replies: 5
Views: 134

Re: Return variable from a label?

If the optional expression is given to return, it is evaluated, and it's result is stored in the _return variable. This variable is dynamically scoped to each context.
Does this mean I should do this:

Code: Select all

label run_it(x):
    $ x = x + 1
    call doit(x)

    $ x = _return