I'm creating a card mini-game and I'm trying to make the code as efficient as possible to avoid redundancies where I can (and to hopefully better understand the software in the process). I've created a large class, and there are a ton of variables that are constantly changing by player choices, and ...
I'm getting this error, and could really use some help figuring it out. I'm sorry, but an uncaught exception occurred. While running game code: File "renpy/common/00images.rpy", line 26, in script init 1900 python hide: File "renpy/common/00images.rpy", line 54, in <module> scan_...
In imagebutton «focus_mask True» does not work on Android OS. Is it a global problem or it's just my luck? It's a "global problem". You can use a callable instead, that works just fine (quite possibly much faster as well). Would you mind clarifying this for me? How would I go about conver...
Does anyone know of a way to add an "if" function regarding image position? I've mapped image movement to the arrow keys, and if there was some way to code it so that if an image == a specific xpos and ypos, an action would occur (like a jump), that would open up some pretty spectacular op...
Is there any way to add sound to an animation? Here's my non-functional code so you can see how I'm thinking (they're LiveComposite images): image tree: play sound "rustle.mp3" "tree_shake" with hpunch 0.5 "tree_rest" with Dissolve(0.8) 1.0 repeat Any help would be appr...
I have a lot of images that are set up to layer. For example: character_full (entire body & face) character_eyeclose (literally only an image of closed eyes already positioned in file to layer over the full) character_happy (happy face set to go over the face of "character_full") I hav...
I'm having a bit of a problem with this... The first [randcoin] is always random, but every time I use [randcoin] afterwards, it always uses the first number rolled. For example: label start: "You received [randcoin] coins!" #Let's say it's 15 "You received [randcoin] coins!" #It...
Awesome. That's exactly what I needed. I edited it a little bit: init python: showmoney= True money = 0 def display_money(): if showmoney: ui.frame() #This is optional. It adds a frame around the text. ui.text("$ %d" %money) config.overlay_functions.append(display_money) label start: $ mon...