Search found 134 matches

by thexerox123
Fri May 10, 2024 12:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Replies: 7
Views: 256

Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause

In Ren'Py we use "show screen" when that screen should show something in parallel with the rest of the game process. If we want the game process to remain on a certain screen then we use "call screen". Then we don't need "renpy.pause" "to keep the player from prog...
by thexerox123
Thu May 09, 2024 12:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Replies: 7
Views: 256

Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause

So my way to show some message to the player while not wanting the player to continue, would be to call a modal screen and use a timer to automatically return from that screen. screen show_message(msg, t=3.0) modal True text "[msg]" align (0.5, 0.5) timer t action Return() label start: &q...
by thexerox123
Thu May 09, 2024 11:34 am
Forum: Ren'Py Questions and Announcements
Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Replies: 7
Views: 256

Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause

So, I'm trying to make a custom turn-based battle system for my game. I have point-and-click navigation screens that are displayed using a label with renpy.pause(hard=True). https://i.imgur.com/ctrDlDt.png My issue occurs when I try to use an attack. The sequence of events is this: it determines whe...
by thexerox123
Fri Apr 12, 2024 10:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 310

Re: Variable Layered Image/Composite Within an Item Definition

Hmm, right. I guess the data structure is what I'm having trouble wrapping my mind around, though. I'm not averse to changing the structure; I've already added the category attribute to be able to split them into different tabs. I guess for the potential list/dict method, I still can't quite wrap my...
by thexerox123
Fri Apr 12, 2024 8:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 310

Re: Variable Layered Image/Composite Within an Item Definition

Though I guess the thing I'm still not sure about is how I'd make a for loop to check each individual instance of a Fro Yo item and keep track of them. Perhaps a list of lists? But then I still need to figure out how to integrate that with my existing inventory system. Purchasing items is just done ...
by thexerox123
Fri Apr 12, 2024 8:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 310

Re: Variable Layered Image/Composite Within an Item Definition

That does make sense... so I'd still define the 12 different Fro Yo images, but when putting the image together in the inventory, would determine what to layer on top with ConditionSwitch or LayeredImage?

Thank you, that's helpful in framing how I could approach it! :)
by thexerox123
Fri Apr 12, 2024 8:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable Layered Image/Composite Within an Item Definition
Replies: 5
Views: 310

Variable Layered Image/Composite Within an Item Definition

I have an inventory system in my game that's based on this one . Here's an example of how I define a food Item: define teacup = Item(name="Tea", desc="A steaming cup of tea.", category="Food", icon="images/items/Tea.png", act=Show("edible_popup", foo...
by thexerox123
Thu Mar 14, 2024 12:52 am
Forum: Ren'Py Questions and Announcements
Topic: Zooming (+ moving) renpy.Render displayables
Replies: 3
Views: 300

Re: Zooming (+ moving) renpy.Render displayables

I would start with something like ... Meaning Forest is one object rendered with many blits, zooming_function() and trajectory() could be something simple (linear) for testing purposes. When the displayable works, they could be fine-tuned. PS. If there could be multiple trees at the same "dist...
by thexerox123
Tue Mar 12, 2024 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Zooming (+ moving) renpy.Render displayables
Replies: 3
Views: 300

Zooming (+ moving) renpy.Render displayables

I've started muddling my way through putting together another minigame, and am a bit stuck. The idea is just to make a basic tobogganing game, dodging obstacles and getting pickups. I've got my basic loop working so that my toboggan is displayed, and I can move it back and forth. So here's what I ha...
by thexerox123
Sat Feb 03, 2024 10:41 pm
Forum: Ren'Py Cookbook
Topic: 81 mini game Renpy
Replies: 73
Views: 179540

Re: 81 mini game Renpy

I bring another humble offering for this wonderful thread, made using PyTom's Cardgame Framework:

viewtopic.php?p=565308#p565308
by thexerox123
Sat Feb 03, 2024 10:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 685

Re: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?

Well, I'm going to mark this solved, I've figured out pretty well everything I wanted to do with the game! https://i.imgur.com/jXSufI6.png https://thexerox123.itch.io/elfjack-solitaire script.rpy: init: default btn_selected = False transform zoomy: zoom 0.4 transform zoommid: zoom 0.6 transform zoom...
by thexerox123
Fri Feb 02, 2024 3:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 685

Re: Cardgame Framework help: vertical and horizontal scoring checks?

So, I actually did manage to get both of my wild cards working! https://i.imgur.com/edwEJEH.gif I've also added an auto-deal function/toggle. Currently trying to get the restart and undo buttons that I've added working! The current state of my script: script.rpy: init: default btn_selected = False s...
by thexerox123
Thu Feb 01, 2024 6:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 685

Re: Cardgame Framework help: vertical and horizontal scoring checks?

Sorry for just spamming my own thread, but I think I've got it mostly figured out! init python: class ElfJack(object): BAUBLE = 0 SNOW = 1 GINGER = 2 REINDEER = 3 STAR = 4 SANTA = 5 GRUMP = 6 CANE = 7 def __init__(self): # Constants that let us easily change where the game is # located. LEFT=700 TOP...
by thexerox123
Thu Feb 01, 2024 3:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 685

Re: Cardgame Framework help: vertical and horizontal scoring checks?

I've altered my scoring method to just see if I can have it print the integer that corresponds with the suit of each top card in the tableau, and have had success in doing that, at least: def check_for_scoring(self): for row in range(5): for col in range(5): stack = self.tableau[row * 5 + col] # Acc...
by thexerox123
Thu Feb 01, 2024 2:42 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: vertical and horizontal scoring checks?
Replies: 5
Views: 685

Re: Cardgame Framework help: vertical and horizontal scoring checks?

Here's my most recent attempt to figure out the scoring methods, called in the interact method. def check_for_scoring(self): # Check rows for row in range(5): top_cards = [stack[-1] for stack in self.tableau[row] if stack] self.check_and_claim(top_cards, 'horizontal', row) # Check columns for col in...