Search found 2986 matches

by Alex
Tue Dec 06, 2022 3:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Issue with Inventory system after reload save
Replies: 5
Views: 198

Re: Issue with Inventory system after reload save

I fixed it. I had to default the items themselves. chocolate = Item("Chocolate", hp=40, image="gui/inv_chocolate.png") banana = Item("Banana", mp=20, image = "gui/inv_banana.png") IceCream = Item("Ice Cream", mp=20, image = "images/Objects/inv_IceCream.webp") WineBottle = Item("Wine", mp=20, image ...
by Alex
Mon Dec 05, 2022 2:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagebuttons and creating a RPG combat move order
Replies: 1
Views: 56

Re: Imagebuttons and creating a RPG combat move order

... Basic idea : Player gets two actions. Each action needs an attack and a target. Problem = How do I get renpy to remember the variables I set/know if the player has already used up an action while using image buttons. ... Try something like: screen test_scr(): vbox: align(0.5, 0.2) textbutton "A...
by Alex
Sat Dec 03, 2022 6:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Issue with Inventory system after reload save
Replies: 5
Views: 198

Re: Issue with Inventory system after reload save

GoldenGob wrote:
Fri Dec 02, 2022 11:08 am
...
What's the code for 'inventory' declaration?
by Alex
Sun Nov 13, 2022 4:57 pm
Forum: Ren'Py Questions and Announcements
Topic: [FIXED] HELP with custom x and y axis positioning for sprites
Replies: 2
Views: 176

Re: HELP with custom x and y axis positioning for sprites

Kokoro Hane wrote:
Sun Nov 13, 2022 4:35 pm
...
It looks like sprites should be placed at the bottom of the screen, so try to place them at

Code: Select all

yalign 1.0
(the same as ypos 1.0 and yanchor 1.0 - the bottom side of sprite (yanchor) is placed at the bottom side of screen (ypos 1.0))
by Alex
Sat Nov 05, 2022 5:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Change variable back after transform ends
Replies: 3
Views: 212

Re: Change variable back after transform ends

... You mean something like this? default energy_var = 50 default energy_change = None transform zoom_in_out_tr(z=1.0, t=0.5): on appear: zoom 1.0 on show: linear t / 2 zoom z linear t / 2 zoom 1.0 screen energy_bar_scr(): showif energy_change == 'up': bar value AnimatedValue(energy_var, 100, 0.5) ...
by Alex
Mon Oct 24, 2022 3:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Side Image Left/Right
Replies: 7
Views: 1888

Re: Side Image Left/Right

Guys that doesn't work and I don't know why... P is the short name of char which is supposed to be at the right. if not renpy.variant("small"): if who == "p": add SideImage() xalign 0.8 yalign 0.85 else: add SideImage() xalign 0.06 yalign 0.85 (found this topic in google and decided to up it here s...
by Alex
Sun Oct 23, 2022 4:42 am
Forum: Ren'Py Questions and Announcements
Topic: Why doesn't the game save state and return to the main screen?
Replies: 6
Views: 368

Re: Why doesn't the game save state and return to the main screen?

...What do I need to make the save work? Check this page about Ren'Py saving system - https://www.renpy.org/doc/html/save_load_rollback.html You could try 2 options: - create a game loop inside a label, so every turn/move will run some statement. Kind of sample - https://lemmasoft.renai.us/forums/v...
by Alex
Fri Oct 21, 2022 1:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Button Response Time - Rhythm Minigame
Replies: 7
Views: 455

Re: Button Response Time - Rhythm Minigame

How's the actual code of your game looks like?
Screen buttons are slow, so this might be better to track the mouse position when clicked and check if it was in 'right' place.
by Alex
Sat Sep 17, 2022 4:18 pm
Forum: Ren'Py Questions and Announcements
Topic: How to reset input value
Replies: 3
Views: 297

Re: How to reset input value

... if noart == "no art" or "no artwork" or "bare walls" or "empty walls" or "no paintings": ... I suspect that problem is in this line - the condition is incorrect. if noart == "no art" or "no artwork" will be true if ('noart' is equal to 'no art') is True or 'no artwork' is True. The last is alwa...
by Alex
Wed Sep 14, 2022 4:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Preventing additional points gained on rollback?
Replies: 5
Views: 349

Re: Preventing additional points gained on rollback?

How your points gaining system works? In most cases when player rolls back the value of variables changes to previous state, so rolling back and forth won't give any advantages.
by Alex
Thu Sep 08, 2022 2:27 pm
Forum: General Discussion
Topic: Help With Hover displayText & Custom Char Names
Replies: 2
Views: 816

Re: Help With Hover displayText & Custom Char Names

... "[m1_name]" - this is the Ren'Py-style data interpolation. https://www.renpy.org/doc/html/text.html#interpolating-data But in your case the python-style text formatting is required, so try it like # m1_name is the variable, so it doesn't need quotes Show("displayTextScreen", displayText = m1_na...
by Alex
Tue Aug 30, 2022 2:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Custom screen menu, return to previous
Replies: 2
Views: 279

Re: Custom screen menu, return to previous

...Is this in anyway feasible or do I have no choice but to rewrite the choice menu?.. 'Call' action is for labels. You can show another screen using 'Show' action. And to make screens replace each other give them the same tag, like screen select_training: tag my_menu # use any name you want frame:...
by Alex
Sun Aug 28, 2022 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: Character sprites now won't auto hide after sub folder placement
Replies: 4
Views: 274

Re: Character sprites now won't auto hide after sub folder placement

GMHLee wrote:
Sun Aug 28, 2022 6:45 am
Ah I see, then there's a problem. Using spaces when in a sub folder will cause it to fail and not find the image.
Anyway, you can define images manually.
https://www.renpy.org/doc/html/displayi ... -statement
by Alex
Sun Aug 28, 2022 5:43 am
Forum: Ren'Py Questions and Announcements
Topic: Character sprites now won't auto hide after sub folder placement
Replies: 4
Views: 274

Re: Character sprites now won't auto hide after sub folder placement

Hi there, recently decided I wanted to tidy up the images folder. To do that apparently I needed to rename all image names with undcerscored to replace the spaces IF placed into a sub folder of the images folder. That works, but now all "show character x" will only display the character over the to...