Search found 134 matches

by thexerox123
Sun Aug 20, 2023 11:15 pm
Forum: Ren'Py Cookbook
Topic: 83 mini game Renpy
Replies: 74
Views: 194255

Re: 71 mini game Renpy

Hi! I've been playing around with this code, and my question would be: how do you add imagebuttons on the right side that work as up and down arrows when clicked/tapped? For touchscreen play or in case the up and down buttons from the keyboards don't work? I've tried everything I could think of but...
by thexerox123
Wed Aug 16, 2023 11:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Seeking Refactoring/Organization Advice

Another day of good progress, implemented difficulty levels, the GET READY, FLY images at the start, a timer, and the logic to have the sleigh fly off at the end. https://i.imgur.com/moxURuw.gif Weirdly, I've struggled to get the bell sound effect to play along with GET READY and FLY... trying to ge...
by thexerox123
Tue Aug 15, 2023 10:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Seeking Refactoring/Organization Advice

Sorry for spamming this thread, but I've made good progress today! Got the logic and collisions for "closed" rings working! https://i.imgur.com/844h1jW.gif style scoreboard: color "#8B0000" # Set text color to red size 50 # Set font size to 50 xpos 880 # Set x position ypos 20 # ...
by thexerox123
Tue Aug 15, 2023 5:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Seeking Refactoring/Organization Advice

Phew, and managed to split the player out into its own class! style scoreboard: color "#8B0000" # Set text color to red size 50 # Set font size to 50 xpos 880 # Set x position ypos 20 # Set y position init python: import random import pygame weapon_variables = { "basic": { "...
by thexerox123
Tue Aug 15, 2023 1:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Basic Randomization with initial onscreen state?

Actually, looks like my next task is to drastically refactor and clean up the code. I had originally planned for the rings to animate through a few frames and then disappear, but ultimately I liked the look better when it just turned yellow and continued on. Since the original rings were set to stop...
by thexerox123
Mon Aug 14, 2023 2:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Basic Randomization with initial onscreen state?

This looks like a great arcade game! I don't know how you can place the clouds at the beginning of the screen, but as an alternative you could put a text "GET READY!" or a long fade in/dissolve until all the clouds have appeared. such tricks have been used for decades :D Edit: You would n...
by thexerox123
Wed Aug 09, 2023 12:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Basic Randomization

Been continuing to make pretty good progress! https://i.imgur.com/laPiUZD.gif Got some basic projectile logic working (with no collision detection yet). I started trying to figure out enemy logic, but got overwhelmed with that and put it aside. Instead, I made a class for rings that can be flown int...
by thexerox123
Sun Aug 06, 2023 8:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Basic Randomization

Well, made some decent progress today! https://i.imgur.com/mkgdqLC.gif init python: import random class CloudGenerator(renpy.Displayable): def __init__(self, small_count, medium_count, large_count, outer_count, over_count): renpy.Displayable.__init__(self) self.small_count = small_count self.medium_...
by thexerox123
Sun Aug 06, 2023 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Basic Randomization

Edit: Made an error. Edit again: I've got the clouds split out into their own class now, at least: init python: import random class SleighShooter(renpy.Displayable): def __init__(self): renpy.Displayable.__init__(self) self.key_up = False self.key_down = False self.key_left = False self.key_right = ...
by thexerox123
Sat Aug 05, 2023 4:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

Re: Shooter Minigame Help - Basic Randomization

... For now you draw a player and a cloud over it (on a foreground). So try to add another cloud before player in render (at the background) and give it a different speed. That step I get, if I add a new set of variables for its positioning, but I have 15 different cloud images that I'd like to use...
by thexerox123
Sat Aug 05, 2023 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice
Replies: 15
Views: 3479

[SOLVED] Shooter Minigame Help - Seeking Refactoring/Organization Advice

Edit: Made lots of alterations from this original post; see most recent post for updated code! I'm trying to finally wrap my head around how to work with classes and event-based programming, but I always seem to hit a wall when it comes to randomizing/controlling the randomization of displayables us...
by thexerox123
Wed Jul 19, 2023 12:09 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Cardgame Framework help: Replacing ranks with index?
Replies: 1
Views: 728

[SOLVED] Cardgame Framework help: Replacing ranks with index?

Edit: I've worked out these initial issues, and have started a new thread seeking further advice. https://lemmasoft.renai.us/forums/viewtopic.php?t=67882 I've developed a solitaire cardgame with a custom deck that I'd like to program into my game using the Renpy Cardgame Framework. I've printed a de...
by thexerox123
Tue Jun 13, 2023 11:10 am
Forum: Ren'Py Questions and Announcements
Topic: Disallow Manual Save in Chosen Slot(s)? & Conditional y/n Confirm?
Replies: 7
Views: 354

Re: Disallow Manual Save in Chosen Slot(s)? & Conditional y/n Confirm?

https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=66275&start=15#p559229 <--- my fumbling to get that code working is detailed here, if it's relevant. I might give the regexp method another pass, re-reading that now, I can see where I was thinking about it all wrong back then. So thank y...
by thexerox123
Tue Jun 13, 2023 11:00 am
Forum: Ren'Py Questions and Announcements
Topic: Disallow Manual Save in Chosen Slot(s)? & Conditional y/n Confirm?
Replies: 7
Views: 354

Re: Disallow Manual Save in Chosen Slot(s)? & Conditional y/n Confirm?

It doesn't answer the question of whether I'm right or not with my assumption? Anyways, I provided the following code based on my assumption. What do these codes do? - You can cycle through the profile page save slots by the numbers below the slots (like how renpy save screen usually look). Each pa...
by thexerox123
Mon Jun 12, 2023 9:16 am
Forum: Ren'Py Questions and Announcements
Topic: Disallow Manual Save in Chosen Slot(s)? & Conditional y/n Confirm?
Replies: 7
Views: 354

Re: Disallow Manual Save in Chosen Slot(s)? & Conditional y/n Confirm?

If I'm right about that then why do you need to skip large slot numbers on each page (1-1, 2-100, etc.)? Since afaik setting a new page means the slot counter will just reset to 1, meaning I'm imagining it to be more like (1-1, 2-1, 3-1, 4-1). That doesn't seem to be the way it works; setting it as...