Search found 831 matches

by gas
Thu Dec 24, 2020 5:38 pm
Forum: Ren'Py Questions and Announcements
Topic: Which license for commercial game on Android?
Replies: 3
Views: 367

Re: Which license for commercial game on Android?

For the JDK commercial use you must subscribe Oracle Java SE, and price may vary, starting 2.50 dollars monthly fee for single device use. Here: https://www.oracle.com/java/java-se-subscription.html Here the price table: https://www.oracle.com/us/corporate/pricing/price-lists/java-se-subscription-pr...
by gas
Thu Dec 24, 2020 11:42 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy, PyGames and OpenGL in 2021
Replies: 1
Views: 562

Re: Renpy, PyGames and OpenGL in 2021

Renpygame is no longer here, and you should translate your minigame into a CDD to have it run under the main scope of renpy. You don't have any need to import pygame! Is already running (is what make renpy render stuff, in fact). You don't "call" minigames, they execute as part of default renpy exec...
by gas
Sat Dec 19, 2020 10:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I remove the randomization from this code?
Replies: 3
Views: 445

Re: How can I remove the randomization from this code?

No, you didn't posted the way the battle is actually called (add here a smiley of your choice). Post here, if you have one (and surely you have) the line that in the code start a battle. Once I own that I can possibly reply. Cause is not a matter of how enemy are structured, but how the battle is ma...
by gas
Sat Dec 19, 2020 4:29 pm
Forum: Ren'Py Questions and Announcements
Topic: How to display specific words or phrases in Japanese font when I want it to?
Replies: 3
Views: 450

Re: How to display specific words or phrases in Japanese font when I want it to?

You can use a variable.

Code: Select all

default tense = "悪因悪果"

label start:
    "Beware of this: [tense]"
    $ tense = “Evil cause, evil effect”
    "Well, I was meaning: [tense]"
by gas
Sat Dec 19, 2020 3:54 pm
Forum: Ren'Py Questions and Announcements
Topic: How to get special characters like æ and 兎 to show
Replies: 4
Views: 387

Re: How to get special characters like æ and 兎 to show

Drop it in the game folder.
Or use
"GUI/bunny.ttf".
by gas
Sat Dec 19, 2020 3:41 pm
Forum: Ren'Py Questions and Announcements
Topic: How to select an imagebutton on click
Replies: 3
Views: 313

Re: How to select an imagebutton on click

From the docs: "This only makes sense when the button has a list of actions. For example: textbutton "Marsopolis": action [ SelectedIf(SetVariable("mars_flag", True)), SetVariable("on_mars", True) ] Now look your own code. It should be: action [SelectedIf(SetVariable("myLoc", 1)), Jump("bathroom")] ...
by gas
Sat Dec 19, 2020 3:29 pm
Forum: Ren'Py Questions and Announcements
Topic: There must be a more elegant way for me to write this menu...
Replies: 3
Views: 533

Re: There must be a more elegant way for me to write this menu...

I also suggest you to not use '0' or '1' to determine if something's here or not, True/None/False work better and shorten the code.
The check

'if terr.temple == 0'

become

'if not terr.temple'

It make easier later to sort out stuff and a lot of things that maybe you want to manipulate.
by gas
Sat Dec 19, 2020 2:00 pm
Forum: Ren'Py Questions and Announcements
Topic: How can I remove the randomization from this code?
Replies: 3
Views: 445

Re: How can I remove the randomization from this code?

The quoted code lack A LOT of usefull things, like how a battle is actualy called. You'll have more chance to get a proper reply writing the question at the cookbook recipe post or even via PM to author. There's a couple of things I don't even understand inspecting the code this way (like it's assig...
by gas
Sat Dec 19, 2020 1:09 pm
Forum: Ren'Py Questions and Announcements
Topic: How to outline interface text?
Replies: 2
Views: 336

Re: How to outline interface text?

Reach the screens.rpy file, not the GUI file. Find this line: style gui_text: properties gui.text_properties("interface") Now add any other property you want. For outlining it should be: style gui_text: properties gui.text_properties("interface") outlines [(2,"#d474ae",0,0)] Save the script, relaunc...
by gas
Fri Dec 18, 2020 10:47 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Help with efficient jumping between screens and labels?
Replies: 10
Views: 501

Re: Help with efficient jumping between screens and labels?

(that happen when people use YouTube or Reddit as a source). One way to stage such extra scenes while a game is running is to A) Add a new screen B) Reference it to the navigation C) Use the 'replay' functions to start the extra scenes. https://www.renpy.org/doc/html/rooms.html#replay This way you c...
by gas
Thu Dec 17, 2020 5:44 pm
Forum: Ren'Py Questions and Announcements
Topic: How to position an NVL menu?
Replies: 4
Views: 778

Re: How to position an NVL menu?

Done this way: screen nvl(dialogue, items=None): window: style "nvl_window" has vbox spacing gui.nvl_spacing if not items: ## Displays dialogue in either a vpgrid or the vbox. if gui.nvl_height: vpgrid: cols 1 yinitial 1.0 use nvl_dialogue(dialogue) else: use nvl_dialogue(dialogue) ## Displays the m...
by gas
Thu Dec 17, 2020 1:18 pm
Forum: Ren'Py Questions and Announcements
Topic: How to position an NVL menu?
Replies: 4
Views: 778

Re: How to position an NVL menu?

You can't set it as the menu can appear inline at any point in the page after previous boxes. So you can't set the vertical alignement. Also, the menu is inside the same vbox that contain lines or a menu (on style sense, it doesn't discriminate between the two types of content). You must change the ...
by gas
Thu Dec 17, 2020 1:02 pm
Forum: Development of Ren'Py
Topic: Possible change?
Replies: 4
Views: 4636

Re: Possible change?

This is one of those things that's a lot more subtle than it appears at first. If I'm understanding what you want... You've totally understood the practical implementations. I think this might make sense, but it's a huge set of changes, and one that I suspect one that doesn't add a lot of value ove...
by gas
Wed Dec 16, 2020 11:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Gradually change image animation speed?
Replies: 4
Views: 741

Re: Gradually change image animation speed?

You probably want to rotate that fidgetspinner... You should create a function and use the function return as the rotation parameter. https://www.renpy.org/dev-doc/html/atl.html#function-statement Then in your code you can pass a variable to that function to set the rotation speed. Another idea, but...
by gas
Wed Dec 16, 2020 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: The atl-animation screen is not displayed(without error)
Replies: 1
Views: 338

Re: The atl-animation screen is not displayed(without error)

Probably as the screen is a call, it doesn't have execution time to process two if's and pass to the Return() instead after the first. If(gg.it >= 10, Function(LightAttack.Use, gg, enemy), NullAction()), If(gg.it >= 10, Show("atl_attack", None, enemy)) I think the thing is a bit messy having the sam...