Search found 5 matches

by wanyc
Wed Jul 10, 2019 10:09 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Any example for creating a battle log on the screen?
Replies: 4
Views: 378

Re: Any example for creating a battle log on the screen?

You can try this (not tested): default histo = [] init python: def log(txt): histo.append(txt) renpy.hide_screen("myhistory") renpy.show_screen("myhistory") screen myhistory(): viewport: mousewheel True draggable True scrollbars "vertical" yinitial 1.0 vbox: null height 10 for i in histo: text i la...
by wanyc
Wed Jul 10, 2019 5:40 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Any example for creating a battle log on the screen?
Replies: 4
Views: 378

Re: Any example for creating a battle log on the screen?

It really depends on your battle system, but for what you're trying to achieve you can use screens for it https://www.renpy.org/doc/html/screens.html such as using a blank frame for the box then you populate it later with data. As for the scroll part, you can use the viewport to make it https://www...
by wanyc
Wed Jul 10, 2019 2:55 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Any example for creating a battle log on the screen?
Replies: 4
Views: 378

[Solved] Any example for creating a battle log on the screen?

I was thinking about create a battle log screen/window on the right side of the game, recording things such as "xx attack you and you dodged", "you attack xx and xx lost 4 health points" something like that. When the information is too much, a scrollbar would appear. I think it is quite similar to d...
by wanyc
Tue Jul 02, 2019 1:15 am
Forum: Ren'Py Questions and Announcements
Topic: When using renpy.Displayable, is conditional pause possible?
Replies: 3
Views: 400

Re: When using renpy.Displayable, is conditional pause possible?

when I use pause function, I received an error says "Exception: Cannot start an interaction in the middle of an interaction, without creating a new context.
", is that because I am using renpy.Displayable instead of renpy codes?
by wanyc
Mon Jul 01, 2019 10:31 pm
Forum: Ren'Py Questions and Announcements
Topic: When using renpy.Displayable, is conditional pause possible?
Replies: 3
Views: 400

When using renpy.Displayable, is conditional pause possible?

Hello everyone, I am new to renpy and currently making some minigame. Right now I use minigame in tutorial and Ren’Py Cardgame Framework as examples. here is the link for the Cardgame https://renpy.org/wiki/renpy/Cardgame Since they both use "renpy.Displayable" so I assume this is more effecient for...