Search found 1643 matches

by philat
Tue Oct 29, 2019 12:31 am
Forum: Ren'Py Cookbook
Topic: Simple tracker for change of speaker (aka applying transforms to the namebox)
Replies: 1
Views: 157

Simple tracker for change of speaker (aka applying transforms to the namebox)

This gets asked enough that I figured I'd post a relatively simple method to do this. Works as of 7.3.5. - Character callbacks: https://renpy.org/doc/html/character_callbacks.html - _last_say_who is an internal variable Ren'py maintains. This basically just creates two extra variables to track when ...
by philat
Mon Oct 28, 2019 10:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Passing Variable Values to a Text Image?
Replies: 4
Views: 204

Re: Passing Variable Values to a Text Image?

Additionally, what is gained by using the Text() image rather than just showing text?

Code: Select all

screen popup(n):
    text str(n) at transform
seems like it would do basically the same thing...
by philat
Fri Oct 25, 2019 8:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved, but open to advice] Moving the scene with an onscreen button.
Replies: 5
Views: 273

Re: [Solved, but open to advice] Moving the scene with an onscreen button.

Dunno what you were doing, but all you have to do is show the relevant screen. screen testatl(xpos=0.5): hbox: textbutton "<" action Show("testatl", xpos=0.25) textbutton ">" action Show("testatl", xpos=0.75) add Solid("#FFF", xysize=(50,50)) at atl(xpos) transform atl(xpos): linear 0.5 xpos xpos la...
by philat
Fri Oct 25, 2019 1:31 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved, but open to advice] Moving the scene with an onscreen button.
Replies: 5
Views: 273

Re: [Solved, but open to advice] Moving the scene with an onscreen button.

You can use ATL statements on a button/screens in general. Nonetheless, it's simpler to do the label thing if you don't want to go through the hassle of doing it purely in screens.
by philat
Fri Oct 25, 2019 1:15 am
Forum: Ren'Py Questions and Announcements
Topic: Namebox fade in - how to make it happen only once?
Replies: 2
Views: 198

Re: Namebox fade in - how to make it happen only once?

Short answer is if you were looking for an out-of-the-box solution for this, there isn't one -- rolling your own solution is doable but will take time and more-than-beginner coding in ren'py.
by philat
Wed Oct 23, 2019 4:25 am
Forum: Ren'Py Questions and Announcements
Topic: I can't make items (imagebutton) stay in just one label
Replies: 7
Views: 354

Re: I can't make items (imagebutton) stay in just one label

There are several point and click examples on the forums that would accomplish what you want. In general, I would say familiarize yourself with the use statement.
by philat
Fri Oct 11, 2019 3:07 am
Forum: Ren'Py Questions and Announcements
Topic: dialogue text blinks during transition
Replies: 8
Views: 411

Re: dialogue text blinks during transition

Code: Select all

screen test():
    add Solid("#FFF", xysize=(50,50)) at dissolvein
   
label start:
    "blah blah {nw}"
    show screen test
    extend "blah blah2"
   
transform dissolvein:
    alpha 0
    linear 0.5 alpha 1.0
by philat
Thu Oct 10, 2019 11:44 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Creating an explorable screen?
Replies: 10
Views: 415

Re: Creating an explorable screen?

Well, obviously you need to put the hotspot there. You can find the coordinates of the hotspot using the dev tools as described above.
by philat
Thu Oct 10, 2019 7:38 pm
Forum: Ren'Py Questions and Announcements
Topic: dialogue text blinks during transition
Replies: 8
Views: 411

Re: dialogue text blinks during transition

That's just how transitions work. Use ATL if you want the textbox to stay.
by philat
Thu Oct 10, 2019 7:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Creating an explorable screen?
Replies: 10
Views: 415

Re: Creating an explorable screen?

You can just use xpos x ypos y. Alternatively, export the file as the same size as your screen (with transparency) and use alpha so the transparent parts are insensitive - I tend to do the latter because fiddling with placing the images in renpy is tedious. Scroll down for the alpha keyword: https:/...
by philat
Thu Oct 10, 2019 4:49 am
Forum: Ren'Py Questions and Announcements
Topic: textbutton behaviour
Replies: 1
Views: 281

Re: textbutton behaviour

SetVariable makes a button unresponsive if the variable is already set to whatever you're trying to set it to. In this case, it means extra_search is already "". It would probably be easier to set extra_search to a different default setting rather than making your own screen action that doesn't beha...
by philat
Tue Oct 08, 2019 3:54 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Trouble with hovered animation for choice buttons
Replies: 19
Views: 810

Re: Trouble with hovered animation for choice buttons

Limited to the error itself: you need str() around choice_number since you're trying to concatenate a string and an integer.
by philat
Mon Oct 07, 2019 10:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Confirmation after Menu selection
Replies: 3
Views: 296

Re: Confirmation after Menu selection

Probably the best solution would be using a tooltip on hover. Easier to create a custom screen for this (although you can modify the menu choice screen to take optional tooltips, that's more advanced than just making a screen from scratch).

https://www.renpy.org/doc/html/screen_a ... l#tooltips