Search found 32 matches

by screamingpenguin
Sat Aug 08, 2020 7:26 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Transforms on Frames within a Screen
Replies: 2
Views: 295

Re: Transforms on Frames within a Screen

hell_oh_world wrote: Sat Aug 08, 2020 9:24 am It should be `showif` instead of ordinary if to trigger the show and hide event.
Thank you so much !! It works now!
by screamingpenguin
Sat Aug 08, 2020 8:19 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Transforms on Frames within a Screen
Replies: 2
Views: 295

[Solved] Transforms on Frames within a Screen

I'm sure it's something simple that I'm overlooking, but at the same time, I'm certain I've done this method in the past using the same code. I am trying to achieve a frame in the screen, which when it is shown (and hidden), has a transformation applied to it. Note: I don't want the whole screen doi...
by screamingpenguin
Wed Sep 04, 2019 8:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Enabling Textbuttons to Add Duplicate Items to the Inventory
Replies: 8
Views: 920

Re: Enabling Textbuttons to Add Duplicate Items to the Inventory

My approach is slightly different: Instead of having two lists: inventory and shop_inventory, I have only one with all items in it. Also I add an attribute to items: quantity = 0. So, If you want to see/use your inventory, you can see/use only the items that have item.quantity > 0 . If you want to ...
by screamingpenguin
Wed Sep 04, 2019 7:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Items in Inventory Disappearing on Load
Replies: 2
Views: 474

[SOLVED] Items in Inventory Disappearing on Load

Yikes. I thought everything was functioning perfectly, until a friend was playing and told me it was broken. After following their steps to get the same error, I've realised the issue is because items are disappearing from the inventory on load. To summarise, I have a gift system where you can buy i...
by screamingpenguin
Fri Aug 30, 2019 12:10 am
Forum: Ren'Py Questions and Announcements
Topic: Enabling Textbuttons to Add Duplicate Items to the Inventory
Replies: 8
Views: 920

Re: Enabling Textbuttons to Add Duplicate Items to the Inventory

Sorry! I don't think I was clear enough about my issue haha. I want to be able to add multiple of the same item into the inventory, but the issue is that if a certain item is already in it, it won't allow me to add another. So if I already have an apple in my inventory and I want to buy another appl...
by screamingpenguin
Thu Aug 29, 2019 8:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Enabling Textbuttons to Add Duplicate Items to the Inventory
Replies: 8
Views: 920

Enabling Textbuttons to Add Duplicate Items to the Inventory

So, to summarise, I am in the process of setting up a shop screen in my game, but I've come across a problem that I am stuck on. If a certain item is already in the inventory, the button will disable itself. Eg. if I have an apple in the inventory, the button to purchase an apple will disable itself...
by screamingpenguin
Mon Aug 26, 2019 5:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Need some advice on condensing code. [SOLVED]
Replies: 4
Views: 639

Re: Need some advice on condensing code.

hell_oh_world wrote: Mon Aug 26, 2019 11:21 am I guess you could replace these with this...

Code: Select all

if reedemedtsu % 5 == 0 and redeemedtsu < 100 and tsu_points >= reedemedtsu:
    $ reedemedtsu += 5
    $ gift_ticket += 2
    show screen notify("Gift Ticket Added")
You are a godsend, thank you so much !! :D
by screamingpenguin
Mon Aug 26, 2019 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: Need some advice on condensing code. [SOLVED]
Replies: 4
Views: 639

Need some advice on condensing code. [SOLVED]

Basically, I'm still learning Python and going through lots of trial and error in the process, as expected. Anyway, I'm looking for some advice on shortening some of my code as it's become very excessive and I'm sure there must be a way to somehow make it shorter? What I have functions as expected, ...
by screamingpenguin
Wed Mar 06, 2019 5:20 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] StaticValue Bars... but with Negative Range?
Replies: 4
Views: 690

Re: StaticValue Bars... but with Negative Range?

Thank you for actually clarifying that.
I managed to figure it out by playing around with it after reading the link you provided, it now works as I wanted.
Thank you for your help!
by screamingpenguin
Tue Mar 05, 2019 7:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] StaticValue Bars... but with Negative Range?
Replies: 4
Views: 690

Re: StaticValue Bars... but with Negative Range?

That doesn't exactly answer my question, sorry :?
The styles work how I want them, I just need to know how to make bars work with a negative range of numbers.
by screamingpenguin
Tue Mar 05, 2019 6:04 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] StaticValue Bars... but with Negative Range?
Replies: 4
Views: 690

[Solved] StaticValue Bars... but with Negative Range?

Heya, so to summarise, each character has "points" (aka affection points?) which range from -100 to 100. I'd like to be able to display the points gauge in a bar on a screen. But it appears the bars won't properly accept a negative number? Let me show you what I have; - Two bars; - Left Ba...
by screamingpenguin
Sun Mar 03, 2019 9:07 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Image Scaling Help?
Replies: 3
Views: 559

Re: Image Scaling Help?

Sorry for the late response! (I wasn't notified 8U) Thank you both for your responses tho! I have it working now, I'm not sure how to use focus_mask so I left it out, replacing it with xfill lmao. I hadn't heard of the Transform functions until now ?? You're a life saver haha thank you! :D textbutto...
by screamingpenguin
Thu Feb 28, 2019 6:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Image Scaling Help?
Replies: 3
Views: 559

[Solved] Image Scaling Help?

Heya, so I'm trying to build an inventory for my game, I've got a single image for each item which I'd like to scale down in-game to use as thumbnails- rather than having different sized image files that will make the folder bigger. I've come across an error when trying to scale the image, I'm not e...
by screamingpenguin
Sun Feb 24, 2019 4:47 pm
Forum: Ren'Py Cookbook
Topic: Dynamic Dress Up Framework
Replies: 16
Views: 12540

Re: Dynamic Dress Up Framework

I have looked through those but I haven’t found anything that works. The base code of this is exactly the same, as I tested saving the game with the base game (as I downloaded it from the op’s post) after changing the clothes and features, then exited the game, reloaded the save file and it was set ...