Search found 134 matches

by thexerox123
Wed Apr 12, 2023 8:25 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Looping Sound Effects: Multiple Channels/Functions/While Loops at once?
Replies: 3
Views: 656

Re: Looping Sound Effects: Multiple Channels/Functions/While Loops at once?

Finally got back around to fixing this up, it worked well, so thank you again! :) Here's what it the working code ended up looking like, for posterity: play sound2 ["<silence 1.7>", "audio/SFX/foamshoot.mp3", "<silence 0.2>", "audio/SFX/BallBounce.mp3", "...
by thexerox123
Mon Apr 10, 2023 12:50 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I make this Pygame loop work correctly?
Replies: 5
Views: 786

Re: How can I make this Pygame loop work correctly?

Well, I'm... kinda making progress. I managed to get the grass background down with snow tiled on top and indexed so that I can change the tiles later as the snow melts... I have a countdown timer and had managed to add my player character in a screen, but am now trying to translate that to a CDD/cl...
by thexerox123
Tue Apr 04, 2023 11:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Looping Sound Effects: Multiple Channels/Functions/While Loops at once?
Replies: 3
Views: 656

Re: Looping Sound Effects: Multiple Channels/Functions/While Loops at once?

I would probably look into using silences (https://www.renpy.org/doc/html/audio.html#playing-silence ) to loop using the built-in audio tools rather than trying to use a while loop. Hmmm, thanks, I'll try this! I was also somehow unaware of the play audio option, I thought it had to be music, sound...
by thexerox123
Tue Apr 04, 2023 8:20 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Looping Sound Effects: Multiple Channels/Functions/While Loops at once?
Replies: 3
Views: 656

[SOLVED] Looping Sound Effects: Multiple Channels/Functions/While Loops at once?

I have a room-based navigation system set up for my game, and in one workshop area, I have 4 characters doing their own animation loops at the same time. I want to layer sound effect loops to match each animation, but I'm running into an issue with the way I'm going about it. I defined my animations...
by thexerox123
Mon Apr 03, 2023 6:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Altered Save System and FileScreenshot() issue.
Replies: 2
Views: 359

Re: Altered Save System and FileScreenshot() issue.

I believe you use $ forcesave() directly as RenPy statement. You should do something similar to what force_autosave function does. Check force_autosave definition. For example: def forcesave(): # Do not save if in rollback mode if renpy.game.after_rollback or renpy.exports.in_rollback(): return # D...
by thexerox123
Mon Apr 03, 2023 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Altered Save System and FileScreenshot() issue.
Replies: 2
Views: 359

[SOLVED] Altered Save System and FileScreenshot() issue.

I've set up a system that has 4 selectable player profiles, and as a result, I've had to change how a lot of my save/load systems work. (The profile system is largely detailed here ... I want to post it to the Cookbook subforum once I have some issues like this one ironed out.) I'm also using a syst...
by thexerox123
Mon Apr 03, 2023 1:13 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I make this Pygame loop work correctly?
Replies: 5
Views: 786

Re: How can I make this Pygame loop work correctly?

PyTom wrote: Mon Apr 03, 2023 11:16 am You're better off writing it using Ren'Py's creator-defined displayable system - you can't directly port over pygame, at least right now.
Okay, thank you so much!

I'll start over and reformat accordingly. :)
by thexerox123
Mon Apr 03, 2023 11:01 am
Forum: Ren'Py Questions and Announcements
Topic: How can I make this Pygame loop work correctly?
Replies: 5
Views: 786

Re: How can I make this Pygame loop work correctly?

You'll need to refactor it to be event driven. You can't really just port pygame stuff directly into Ren'Py. Oh, dang, okay, thank you! :) Would I be better off just writing the minigame in Python, or is Pygame still the best way to approach it? I suppose either way, it will probably need to be eve...
by thexerox123
Sun Apr 02, 2023 1:28 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I make this Pygame loop work correctly?
Replies: 5
Views: 786

How can I make this Pygame loop work correctly?

I'm trying to make a top-down 2D snowball-rolling minigame. There's a base grass layer to the ground, then I want to layer tiles of snow overtop by way of a spritesheet... as you roll the snowball over the snow tiles, I want them to lose snow (eventually revealing the grass), and for the snowball to...
by thexerox123
Thu Mar 30, 2023 11:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [Obsolete, new thread] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?
Replies: 8
Views: 961

Re: [Stuck] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?

Hopefully nobody minds me just rambling to myself ad nauseum here in this thread/posting my progress for posterity. Here's where I'm leaving off for tonight: import pygame class SpriteSheet(pygame.sprite.Sprite): def __init__(self, image, roller): self.sheet = image self.rect = self.sheet.get_rect()...
by thexerox123
Thu Mar 30, 2023 11:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [Obsolete, new thread] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?
Replies: 8
Views: 961

Re: [Stuck] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?

Okay, well I maybe made some progress on getting a Terrain class working? land_sheet = spritesheet.Terrain(sprite_sheet_land, 10, False) for land in range(land_steps): land_list.append(land_sheet.get_image(land, 150, 180, BLACK)) def setup_background(): WIN.blit(land_list[landframe], (162, 90)) bric...
by thexerox123
Wed Mar 29, 2023 8:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [Obsolete, new thread] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?
Replies: 8
Views: 961

Re: [Updated] Pygame Help - Interactive Terrain Tiles & Other

Got snow tiled now. land_list = [] land_steps = 9 land_cooldown = 125 landframe = 0 for land in range(land_steps): land_list.append(land_sheet.get_image(land, 150, 180, 1, BLACK)) def setup_background(): WIN.blit(land_list[landframe], (162, 90)) brick_width, brick_height = land_list[landframe].get_w...
by thexerox123
Wed Mar 29, 2023 7:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [Obsolete, new thread] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?
Replies: 8
Views: 961

Re: Pygame Help - Sprite Animation Issues & Other

Now I have a rolling snowball and a character that rotates by way of a longer sprite sheet, but now I have to figure out how to move the snowball along with the player's rotations, and account for the snowball growing as the game goes on. Hm. For now, I'll probably try just applying an expression t...
by thexerox123
Wed Mar 29, 2023 6:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [Obsolete, new thread] Pygame Help - Interactive Terrain Tiles - Collisions, Classes, and Lists?
Replies: 8
Views: 961

Re: Pygame Help - Sprite Animation Issues & Other

Made even more progress! import pygame import os import spritesheet pygame.init() SCREEN_WIDTH, SCREEN_HEIGHT = 1920, 1080 WIN = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) pygame.display.set_caption("Snowly Roller") WHITE = (255, 255, 255) BLACK = (0, 0, 0) x = 500.0 y = 500.0 ...