Search found 19 matches

by city
Fri Mar 08, 2019 9:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't assign to function call
Replies: 2
Views: 306

Re: Can't assign to function call

Thanks for replying, Remix! When I put it in, I get this error:

AttributeError: 'StoreDict' object has no attribute 'p1'

Any ideas? And do you have any suggestions for replacing:

Code: Select all

$ (eval("p"+str(hand_select))) = "none" 
with something that works?
by city
Fri Mar 08, 2019 8:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't assign to function call
Replies: 2
Views: 306

Can't assign to function call

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 ...
by city
Fri Dec 22, 2017 8:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] IndexError: tuple index out of range
Replies: 1
Views: 676

Re: [Solved] IndexError: tuple index out of range

Turns out I accidentally deleted an image name so it was just saved as " .png" which messed things up. Sorry for the unnecessary post!
by city
Fri Dec 22, 2017 6:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] IndexError: tuple index out of range
Replies: 1
Views: 676

[Solved] IndexError: tuple index out of range

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_...
by city
Tue Jan 03, 2017 12:13 am
Forum: Ren'Py Questions and Announcements
Topic: re: On Asking Questions
Replies: 113
Views: 22431

Re: android+focus_mask

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...
by city
Sun Jan 01, 2017 3:34 am
Forum: Development of Ren'Py
Topic: 'NoneType' object has no attribute 'mutated_surface'
Replies: 5
Views: 2044

Re: 'NoneType' object has no attribute 'mutated_surface'

I updated to .12 and sent out almost an identical build that I made with .11, and got this error in multiple places:

AttributeError: 'NoneType' object has no attribute '_in_current_store'

I had no idea what to do so I reverted to .11, built it again, and it seems to work fine.
by city
Mon Nov 21, 2016 2:08 pm
Forum: Ren'Py Questions and Announcements
Topic: if image at Position(...)
Replies: 3
Views: 961

Re: if image at Position(...)

This is amazing! Thank you so much, r_sami!
by city
Mon Nov 21, 2016 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: if image at Position(...)
Replies: 3
Views: 961

if image at Position(...)

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...
by city
Thu Oct 20, 2016 6:38 pm
Forum: Ren'Py Questions and Announcements
Topic: ConditionSwitch Nesting
Replies: 0
Views: 348

ConditionSwitch Nesting

I'm trying to nest ConditionSwitch-es inside one another for a dress-up minigame, but it keeps telling me that it "can't choose a displayable".

Edit: I was really dumb and didn't define the ConditionSwitch properly. Ignore me!
by city
Sat Sep 24, 2016 5:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Sound during animation
Replies: 0
Views: 357

Sound during animation

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...
by city
Wed Aug 10, 2016 3:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Layering image over textbox
Replies: 3
Views: 475

Re: Layering image over textbox

Bumping for help.

Will the overlay function help place images over the textbox?
by city
Mon Aug 08, 2016 1:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Layering image over textbox
Replies: 3
Views: 475

Layering image over textbox

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...
by city
Tue Jul 12, 2016 5:53 pm
Forum: Ren'Py Questions and Announcements
Topic: Remembering random coin drops
Replies: 5
Views: 885

Re: Remembering random coin drops

Ohhhhh thanks!
by city
Tue Jul 12, 2016 1:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Remembering random coin drops
Replies: 5
Views: 885

Re: Remembering random coin drops

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...
by city
Fri Jul 08, 2016 5:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Remembering random coin drops
Replies: 5
Views: 885

Re: Remembering random coin drops

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...