Search found 7 matches
- Thu Jun 25, 2020 5:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Add a displayable to an existing screen
- Replies: 5
- Views: 597
Re: Add a displayable to an existing screen
Thanks a lot for your help! I'm using showif to add an new icon to the display everytime a new 'visitor' is added to the game (it's, broadly-speaking, a hospitality game) showif len(visitors)>0: python: for x in visitors: renpy.ui.imagebutton("icon"+str(x), action=Function(visitors.remove,...
- Tue Jun 23, 2020 1:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is there a way to run code stored in a string?
- Replies: 1
- Views: 407
Re: Is there a way to run code stored in a string?
Never mind, I just discovered the magic of the Python eval() expression!
- Tue Jun 23, 2020 12:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Add a displayable to an existing screen
- Replies: 5
- Views: 597
Re: Add a displayable to an existing screen
That sounds ok Alex, I can do that thank you. Basically, the screen in question is at the top of my display and I want to add little 'tabs' to represent status ailments during play - these can subsequently be clicked on to interact with them. It would be lovely if I could use regular Renpy commands ...
- Tue Jun 23, 2020 12:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Is there a way to run code stored in a string?
- Replies: 1
- Views: 407
Is there a way to run code stored in a string?
I'm making a card game and storing the effects of various cards as strings. Can anyone show me a simple example of storing normal Renpy code in a string and then running it?
- Tue Jun 23, 2020 12:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Add a displayable to an existing screen
- Replies: 5
- Views: 597
Add a displayable to an existing screen
I have a status bar screen at the top of my game. How do I add new interface elements (e.g. an imagebutton) to that screen during the game?
- Fri Jun 19, 2020 9:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to create an image with both pictures and text
- Replies: 4
- Views: 363
Re: How to create an image with both pictures and text
Thanks so much for your help folks. I ended up using this: image an odd welcome = Composite ( (750, 1050), (0, 0), Image("an odd welcome.png"), (60, 780), Text("card text")) Should I be using Composite or LiveComposite? Finding it hard to get a clear idea of the difference
- Thu Jun 18, 2020 8:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to create an image with both pictures and text
- Replies: 4
- Views: 363
How to create an image with both pictures and text
I'm creating a card game and I want the cards to consist of: (a) An image of the card, art, etc. (b) Some text overlayed onto it - because I want this to possibly change in-game I've got all my card images displaying nicely using Composite... image beast hunter = im.Composite (None, (0, 0), im.Facto...