Search found 381 matches

by hell_oh_world
Thu Aug 13, 2020 1:28 pm
Forum: Ren'Py Questions and Announcements
Topic: How to store a bunch of different InputValues efficiently?
Replies: 5
Views: 77

Re: How to store a bunch of different InputValues efficiently?

Okay, so i tested the code and it doesn't work as it should, probably making the input values as local variables isn't good at all, so you need to change these parts.. self.details = details.keys() to self.details = {d: FieldInputValue(self, d) for d in details.keys()} then just some magic in the sc...
by hell_oh_world
Wed Aug 12, 2020 5:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Problems with renpy.choice_for_skipping()
Replies: 2
Views: 29

Re: Problems with renpy.choice_for_skipping()

Maybe try clearing the persistent in the renpy launcher (Launcher -> Delete Persistent) or recompile (Launcher -> Force Recompile) then rerun the game.
by hell_oh_world
Wed Aug 12, 2020 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Level Up System
Replies: 1
Views: 70

Re: Level Up System

This is much easier to do using objects. But you can still use functions if youre not confident enough around python objects... Using objects would be something like this... But that depends on how complex is your game of course. init python: class Stats(object): def __init__(self, *stats): self.all...
by hell_oh_world
Wed Aug 12, 2020 3:36 pm
Forum: Ren'Py Questions and Announcements
Topic: which different between 'play music' and '$renpy.music.play'?
Replies: 1
Views: 33

Re: which different between 'play music' and '$renpy.music.play'?

They are pretty much the same, they differ on where you use them. If you're inside a renpy code block where renpy syntax exists, such as when youre inside a label you can use the play command. But when youre inside python where renpy syntax doesnt exist (only native pythonic syntax is allowed) then ...
by hell_oh_world
Wed Aug 12, 2020 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: How to store a bunch of different InputValues efficiently?
Replies: 5
Views: 77

Re: How to store a bunch of different InputValues efficiently?

For things like lists or dictionaries you can use DictInputValue, for objects FieldInputValue it is. I would suggest using objects for things like this because as soon as your set of characters grow it would be cumbersome to not manage them in an object oriented way. default dictInpVal = DictInputVa...
by hell_oh_world
Mon Aug 10, 2020 3:23 am
Forum: Ren'Py Questions and Announcements
Topic: Create two splash screens
Replies: 5
Views: 107

Re: Create two splash screens

I'm not sure if I understand but you said... When the player clicks while splashscreen1 is displayed, it skips the rest of the splashscreen and goes to the main menu. well... it will definitely because the placement of your splashscreen images says it well. you first showed the splashscreen 2 then t...
by hell_oh_world
Mon Aug 10, 2020 3:15 am
Forum: Ren'Py Questions and Announcements
Topic: Simple button that let's me subtract number
Replies: 3
Views: 62

Re: Simple button that let's me subtract number

then just add a condition for it.

Code: Select all

screen something():
  default number = 10

  vbox:
    text str(number)
    textbutton "SUBTRACT" action [SetScreenVariable("number", number - 1), If(number == 0, Jump("your_label"))] sensitive (number > 0)

label start:
  show screen something
  pause
  return
by hell_oh_world
Mon Aug 10, 2020 1:52 am
Forum: Ren'Py Questions and Announcements
Topic: Narrator textbox changing position?
Replies: 7
Views: 571

Re: Narrator textbox changing position?

Can you try using a `Frame` for the background? I'm guessing that this is an issue that should be fixed by a frame for most of the image stretching issues? try it with `x/yfill` Also, character definitions must be defined outside labels, and it's better to stick to the convention of defining it usin...
by hell_oh_world
Mon Aug 10, 2020 1:48 am
Forum: Ren'Py Questions and Announcements
Topic: Simple button that let's me subtract number
Replies: 3
Views: 62

Re: Simple button that let's me subtract number

This one's quite easy, you just have to have the basic foundation first of operations in python and learn how to do it in screen language. python operations: https://www.programiz.com/python-programming/operators screen language: https://www.renpy.org/dev-doc/html/screens.html# anyways, this is how ...
by hell_oh_world
Sat Aug 08, 2020 9:24 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Transforms on Frames within a Screen
Replies: 2
Views: 54

Re: Transforms on Frames within a Screen

It should be `showif` instead of ordinary if to trigger the show and hide event.
by hell_oh_world
Fri Aug 07, 2020 1:30 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED][Question] How to create a simple background transition loop with 2 images?
Replies: 4
Views: 96

Re: [Question] How to create a simple background transition loop with 2 images?

maybe you can do something like this through the use of text tags `w` and `nw`... https://www.renpy.org/doc/html/text.html#text-tag-nw https://www.renpy.org/doc/html/text.html#text-tag-w label start: show animation "dialogue1{w=1.0}{nw}" # w=1.0 simply acts like a pause that waits until it reaches o...
by hell_oh_world
Thu Aug 06, 2020 11:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED][Question] How to create a simple background transition loop with 2 images?
Replies: 4
Views: 96

Re: [Question] How to create a simple background transition loop with 2 images?

if you've defined the images using the `image` statement then you can use them by putting the image names inside a set of quotes... image frame1 = "images/bg frame1.png" image frame2 = "images/bg frame2.png" image bg atl transitions: "frame1" with dissolve pause 1.0 "frame2" with dissolve pause 1.0 ...
by hell_oh_world
Tue Aug 04, 2020 8:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Narrator textbox changing position?
Replies: 7
Views: 571

Re: Narrator textbox changing position?

How are you changing the background you're using? By `window_background` in the character definition?

Code: Select all

define e = Character("Eileen",  window_background="e_bg.png")
define narrator = Character(None, window_background="n_bg.png")
by hell_oh_world
Tue Aug 04, 2020 8:32 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Pause movie on last frame?
Replies: 3
Views: 117

Re: Pause movie on last frame?

actually, you can do this. just pass the `image` parameter... quoting... https://www.renpy.org/doc/html/movie.html#Movie image An image that is displayed when play has been given, but the file it refers to does not exist. (For example, this can be used to create a slimmed-down mobile version that do...
by hell_oh_world
Tue Aug 04, 2020 8:18 am
Forum: Ren'Py Questions and Announcements
Topic: Calendar woes -- in need of a simple calendar [SOLVED]
Replies: 44
Views: 6866

Re: Calendar woes -- in need of a simple calendar [SOLVED]

if you'll look closely i placed an `@property` decorator above the function... @property # <----- the decorator that you forgot. def ordinal_day(self): day = self.day ... well, you can place and not place it but if you'll not place it you'll need to call the attribute as a function, the decorator ju...