Search found 777 matches

by hell_oh_world
Tue Oct 19, 2021 2:20 am
Forum: Ren'Py Questions and Announcements
Topic: Attach animation to point gain/point loss
Replies: 8
Views: 528

Re: Attach animation to point gain/point loss

Just use other displayables probably.

Code: Select all

my_func(Fixed("images/Nerve Icons/point loss.png", Text(str(new - old)), fit_first=True), (0.25, 0.5), 0.5)
by hell_oh_world
Mon Oct 18, 2021 11:13 pm
Forum: Ren'Py Questions and Announcements
Topic: background not appearing?
Replies: 3
Views: 424

Re: background not appearing?

I suggest you read this:
https://www.renpy.org/doc/html/displayi ... ing-images
The good documentation of the engine is always your friend if you're struggling.
by hell_oh_world
Sat Oct 16, 2021 7:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Dungeon engine problem
Replies: 8
Views: 1228

Re: Dungeon engine problem

Looking at the framework you're using, I think there's still a lot of things needed to be modified if you want multiple enemies to spawn at the same stage. The former, however, can be done I guess. python: # Create skills (name, type, hit, power) attack = Skill("Attack", "attack"...
by hell_oh_world
Fri Oct 15, 2021 9:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Dungeon engine problem
Replies: 8
Views: 1228

Re: Dungeon engine problem

if this is the list of names for the images/etc... ["left2", "right2", "front2", "left1", "right1", "front1", "left0", "right0"] then you can pre-define presets of this... # presets define ancient = ("ancient_left2&...
by hell_oh_world
Fri Oct 15, 2021 9:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Calendar Object Not Defined
Replies: 6
Views: 481

Re: Calendar Object Not Defined

Yup, you need to observe proper indentation, also that Output method needs to be inside the class block.
If no luck at all, you can try force recompiling your scripts through the launcher, then rerun the game again.
by hell_oh_world
Tue Oct 05, 2021 10:27 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple Choice and Restrictions
Replies: 8
Views: 622

Re: Multiple Choice and Restrictions

I might be wrong, but I think Ren'Py's interpolation doesn't work with imagebuttons.
Hopefully, this will solve that.

Code: Select all

imagebutton auto "{}_%s.png".format(training) action SetScreenVariable("picked_training", training) selected (picked_training == training)
by hell_oh_world
Tue Oct 05, 2021 5:08 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple Choice and Restrictions
Replies: 8
Views: 622

Re: Multiple Choice and Restrictions

My bad. It says you included an unknown keyword and that keyword is "training" (before the action keyword), remove that. (I didn't know I put that somewhere in my code)
Also, it should be [training] not [trainings] just like in my example.
*Updated the code for full correction.*
by hell_oh_world
Tue Oct 05, 2021 2:16 am
Forum: Ren'Py Questions and Announcements
Topic: Multiple Choice and Restrictions
Replies: 8
Views: 622

Re: Multiple Choice and Restrictions

You almost got it right but just like in my example you only need one imagebutton. for training in trainings: imagebutton auto "[training]_%s.png" action SetScreenVariable("picked_training", training) selected (picked_training == training) Referring to my original sample, if you ...
by hell_oh_world
Mon Oct 04, 2021 8:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Multiple Choice and Restrictions
Replies: 8
Views: 622

Re: Multiple Choice and Restrictions

A simple example... default trainings = ["strength", "agility", "intelligence"] default trainers = ["person1", "person2", "person3"] screen training_picker(): default picked_training = None default picked_trainer = None vbox: hbox: for trai...
by hell_oh_world
Wed Sep 29, 2021 9:01 pm
Forum: Ren'Py Questions and Announcements
Topic: How to know first letter of renpy.input?
Replies: 3
Views: 453

Re: How to know first letter of renpy.input?

If you're familiar with lists, strings are pretty much like a list (a list of characters), and just like any other list, you can access its elements by indices.
by hell_oh_world
Tue Sep 28, 2021 7:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Simplifying transform code
Replies: 2
Views: 463

Re: Simplifying transform code

use functions. https://www.renpy.org/doc/html/statement_equivalents.html init python: def show(name): ats = [] if name == "amelia": ats.append(outright) elif name == "rowan": ats.append(outleft) renpy.show(name, at_list=ats) renpy.pause(0.3) label start: $ show("amelia"...
by hell_oh_world
Fri Sep 24, 2021 7:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Positioning images with an Absolute value
Replies: 6
Views: 577

Re: Positioning images with an Absolute value

Adding to what Imperf3kt said, integers as values in properties mean you're positioning it by pixels while floats as values mean you're positioning it relative to the parent. https://www.renpy.org/doc/html/style_properties.html#style-property-values Also, you're probably talking about the built-in f...
by hell_oh_world
Wed Sep 22, 2021 12:14 am
Forum: Ren'Py Questions and Announcements
Topic: Trying to add Notifications to my game
Replies: 3
Views: 447

Re: Trying to add Notifications to my game

You dont need to set a persistent variable to False, is not necessary. Any persistent variable that is referenced for the very first time always defaults to `None`. And you can directly use that value as a condition. if not persistent.unlocked: # is very much the same as saying... persistent.unlocke...
by hell_oh_world
Mon Sep 20, 2021 3:44 am
Forum: Ren'Py Questions and Announcements
Topic: Trying to make a QTE (possible infinite loop exception)
Replies: 4
Views: 473

Re: Trying to make a QTE (possible infinite loop exception)

I'm currently trying to make a QTE that would let you mash a keyboard key to fill up a bar before a timer bar runs out screen qte(duration=10.0, goal=50): default value = 0 hbox: bar value value range goal text "[value] / [goal]" key "keyup_K_SPACE" action [SetScreenVariable(&qu...