Search found 26 matches
- Wed Jun 16, 2021 6:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Stop Layered Images with animated sections from resetting the animation
- Replies: 0
- Views: 1651
Stop Layered Images with animated sections from resetting the animation
I'm currently trying to use some layered images for my sprites and I was hoping to have a few with minor animated parts that could be added or removed, but now when the sprite is updated it resets the animation to frame 1 which makes the thing jittery. Is there a way to only update specific parts of...
- Sat Jun 12, 2021 9:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Character Sprite Stops Scaling After Changing Position
- Replies: 3
- Views: 1253
Re: Character Sprite Stops Scaling After Changing Position
Thanks for the suggestions, I'll look into the LayeredImages thing and see if that work. I set it as a Transform because it's not a transition. It's just making the character slightly less bright to help clarify who is talking/taking priority. Unless I can use a fade transition to manipulate single ...
- Fri Jun 11, 2021 7:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Character Sprite Stops Scaling After Changing Position
- Replies: 3
- Views: 1253
Character Sprite Stops Scaling After Changing Position
I'm very confused about how attributes are being applied to sprites. I have a couple of custom attributes set up so that I can scale a sprite down slightly and also tint them. These seems to work as is, though I'm sure they can be improved upon drastically. # Set sprite size to 50% transform downsca...
- Wed Jun 10, 2020 4:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Re: Weird inconsistent error when displaying information with square brackets
Can you show me how it should be written?
- Wed Jun 10, 2020 1:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Re: Weird inconsistent error when displaying information with square brackets
Okay, so as I try and break this down piece by piece it's just getting worse. The barest minimum amount of coding I'm able to break this down to and get an error is: default pc = Mob(50,50,2,40,40,40,40,"Player","Human","Male",star.sword) define player = Character(pc.pr...
- Wed Jun 10, 2020 3:02 am
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Re: Weird inconsistent error when displaying information with square brackets
This works "You're a [pc.profile[Gender]] [pc.profile[Race]], named [pc_name]. Does that sound right?" But this isn't working File "game/scenes_last_drop.rpy", line 396, in script player "\"I'm [pc_name], I'm nothing special really. The Legion arrested me for whatever c...
- Tue Jun 09, 2020 10:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Re: Weird inconsistent error when displaying information with square brackets
Now it's not working anywhere and I don't know what I've changed or done. I've tried adding a new variable like hell_oh_world suggested default pc_name = pc.profile["Name"] but it still gives the error that Name is undefined. class Mob: def __init__(self, hp, morale, stamina, combat, survi...
- Mon Jun 08, 2020 2:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Re: Weird inconsistent error when displaying information with square brackets
I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 984, in script call call scene_battle_setup pass (_en = _enemy) from _call_scene_battle_setup File "game/script.rpy", line 1103, in script call call scene_battle_loop(_weather_ac...
- Mon Jun 08, 2020 7:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Re: Weird inconsistent error when displaying information with square brackets
That doesn't explain why it works in one case and not the other though. I don't want to dig through every script and change everything without understanding why this doesn't work, and why that would fix it.
- Mon Jun 08, 2020 5:21 am
- Forum: Ren'Py Questions and Announcements
- Topic: Weird inconsistent error when displaying information with square brackets
- Replies: 12
- Views: 634
Weird inconsistent error when displaying information with square brackets
I just ran into a weird issue that I don't understand. I've been using "[pc.profile[Name]]" to display the player name during dialogue which works fine. But then one instance of it started throwing this error File "game/scenes_vergesseneburg.rpy", line 556, in script player "...
- Wed Mar 25, 2020 6:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Button Action triggering without being clicked
- Replies: 8
- Views: 564
Re: Button Action triggering without being clicked
Oh shoot, sorry I totally see what you meant now. Thank you so much. That seems to have fixed it. SetVariable("consumable_text",inventory[selected_item][0].useItem(pc, False)) This seems to work after some crude testing with a couple of different items. Seems to get the descriptions correc...
- Wed Mar 25, 2020 5:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Button Action triggering without being clicked
- Replies: 8
- Views: 564
Re: Button Action triggering without being clicked
Sorry I don't think I understand. How should it be written?
- Wed Mar 25, 2020 8:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: Button Action triggering without being clicked
- Replies: 8
- Views: 564
Re: Button Action triggering without being clicked
@adunato - I tried breaking it down completely using only one function at a time and it's only triggers when removeFromInventory is being called in the action list @gas - def removeFromInventory(inven,p,amo): # First make sure the item is not equipped if isinstance(inven[p][0],Equipable): if inven[p...
- Wed Mar 25, 2020 12:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: Button Action triggering without being clicked
- Replies: 8
- Views: 564
Button Action triggering without being clicked
I'm working on some consumable items that I'd like to have trigger some text after being consumed in the inventory. I've hit a weird road block which I've experienced before and can't remember if I ever figured out how to fix it. Essentially when the screen is updated part of the button action is tr...
- Fri Mar 20, 2020 6:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Invalid Token Error on identical code
- Replies: 3
- Views: 327
Re: Invalid Token Error on identical code
Won't I have to change it to a string instead of an int then?