Search found 2583 matches

by Alex
Sun Jan 24, 2021 3:42 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] - Game crashes when loading from save.
Replies: 2
Views: 56

Re: Game crashes when loading from save.

doorknob22 wrote:
Sun Jan 24, 2021 3:01 am
...

Code: Select all

define forestBlocks = []
...
Try 'default' instead - https://www.renpy.org/doc/html/python.h ... -statement
by Alex
Sat Jan 23, 2021 5:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Access variable declaired within a class to dialogue and setting names in a class
Replies: 1
Views: 60

Re: Access variable declaired within a class to dialogue and setting names in a class

Do you have 'MC' as a Ren'Py character or as an instance of the class 'person'?

Check this thread - viewtopic.php?f=51&t=47911
by Alex
Sat Jan 23, 2021 5:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]imitate bar XScrollValue with FieldValue
Replies: 4
Views: 111

Re: imitate bar XScrollValue with FieldValue

...the position of viewport or bar that uses adjustment are actually updated when the the screen element (viewport or bar) is hovered. Is it other way (proper way) to change adjustment value so that the elements will be automatically updated. Well, it seems like you can change the value of 'adj' ou...
by Alex
Sat Jan 23, 2021 5:45 am
Forum: Ren'Py Questions and Announcements
Topic: How to show multiple character sprites?
Replies: 2
Views: 63

Re: How to show multiple character sprites?

I'm working on a something that requires multiple characters on screen, but when i use the show command, they show ontop of each other. Is there anyway to show multiple cahracters at once? example code: show ch1_na with dissolve show ch2_na with dissolve You need to specify positions for each chara...
by Alex
Fri Jan 22, 2021 1:53 pm
Forum: Ren'Py Questions and Announcements
Topic: renpy.input length not working?
Replies: 8
Views: 304

Re: renpy.input length not working?

... Try this sample image blink: Solid("#0c0") size (20, 3) blink_tr transform blink_tr: yalign 1.0 block: alpha 1.0 linear 0.5 alpha 0.0 linear 0.5 alpha 1.0 repeat screen test_input(): frame: xysize(300, 100) align(0.05, 0.2) hbox: align(0.0, 0.5) text ">>: " color "#0c0" size 35 input length 10 ...
by Alex
Fri Jan 22, 2021 10:33 am
Forum: Ren'Py Questions and Announcements
Topic: how to make timer bar in quiz game that never repeat when choosing the answer?
Replies: 5
Views: 132

Re: how to make timer bar in quiz game that never repeat when choosing the answer?

... You can pass some values to the screen screen countdown(t, label_slow): this means that you must specify two values when showing this screen. Those 't' and 'label_slow' are just variables (you can have as many as you need or none). So, later in the code you have show screen countdown(t=600, lab...
by Alex
Fri Jan 22, 2021 6:44 am
Forum: Ren'Py Questions and Announcements
Topic: how to make timer bar in quiz game that never repeat when choosing the answer?
Replies: 5
Views: 132

Re: how to make timer bar in quiz game that never repeat when choosing the answer?

how can i make a this timer bar ... Try it like screen countdown(t, label_slow): timer t action [Jump(label_slow), Hide("countdown")] bar value AnimatedValue(0, t, t, t) xsize 200 align (0.5, 0.05) label quiz: "So, you have 10 minutes to answer all the questions." "Get ready." show screen countdown...
by Alex
Thu Jan 21, 2021 2:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Say something from a screen
Replies: 6
Views: 210

Re: Say something from a screen

... Hm, I don't get what you try to achieve... If you use menu then just show the text as a result of choice menu: "Choice 1": e "You choose 1" My suggestion was about custom screens. default my_var = 0 screen test_game_scr(): vbox: align(0.5, 0.05) textbutton "Text 1" action [SetVariable("my_var",...
by Alex
Thu Jan 21, 2021 2:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Help Required
Replies: 6
Views: 217

Re: Python Help Required

Basically 12 pieces that can be dragged/swapped with each other, with the correct solution being putting them into their correct spots (a specific order) similar to a jigsaw. Clicking and holding drags each piece, so you can drag one piece onto another and swap positions, while clicking on one brin...
by Alex
Tue Jan 19, 2021 1:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]need help how to combine true or false and multiple choice quiz game
Replies: 4
Views: 182

Re: need help how to combine true or false and multiple choice quiz game

... Try it like init python: def shuffle_answers(x): renpy.random.shuffle(x) return x # The game starts here. label start: $ q_list = [ {"question": "It is a part of a network. It is a special computer that users on the network can access to carry out a particular job.", "answer": [ ["server", "rig...
by Alex
Tue Jan 19, 2021 12:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Python Help Required
Replies: 6
Views: 217

Re: Python Help Required

YeeOldAncient wrote:
Mon Jan 18, 2021 10:34 pm
...
What functionality you want for your game exactly? Are you sure you need all that - this might be that you can do your game with greater ease from scratch.
by Alex
Mon Jan 18, 2021 3:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Say something from a screen
Replies: 6
Views: 210

Re: Say something from a screen

You could try to make a label with this say statement and pass character and text to it by clicking button of your screen. Something like label some_say_label(char, txt): $ renpy.say(char, txt) return button: text i.caption action [i.action, Call('some_say_label', choix_resume, i.caption, from_curre...
by Alex
Mon Jan 18, 2021 2:55 pm
Forum: Ren'Py Questions and Announcements
Topic: problem with indent mismatch
Replies: 2
Views: 153

Re: problem with indent mismatch

Indentation (some spaces at the beginning of a line of code) realy matters for Ren'Py. Check an old, but useful explanaition (the other answers on that page are mostly out of date, so don't read them) - https://www.renpy.org/wiki/renpy/doc/FAQ (search for 'How does indentation work? What are blocks?...