Search found 525 matches

by gas
Mon Feb 03, 2020 9:06 am
Forum: Ren'Py Questions and Announcements
Topic: Music.get_playing
Replies: 4
Views: 229

Re: Music.get_playing

Sure, if you want a generical approach. Even a function returning the name could be used. def trackname(what): if ">" in what: return what.partition(">")[2] return what label idunno: $ mytrack = trackname(renpy.get_playing()) (Those are just suppositions, I don't know if there's an internal method t...
by gas
Sun Feb 02, 2020 9:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Music.get_playing
Replies: 4
Views: 229

Re: Music.get_playing

I dunno, but this should return your filename string with the <from..> part stripped out, if you need for.

Code: Select all

$ mytrack = renpy.get_playing()
$ trackname = mytrack.partition(">")[2]
by gas
Thu Jan 30, 2020 9:41 am
Forum: Ren'Py Questions and Announcements
Topic: In-game purchase(buying 1 item) [HELP~]
Replies: 2
Views: 231

Re: In-game purchase(buying 1 item) [HELP~]

User Andredron posted this on the Cookbook section.

viewtopic.php?t=49196

EDIT:(Damn! How fast you people are! Sorry the duplication!)
by gas
Wed Jan 29, 2020 9:31 am
Forum: Ren'Py Questions and Announcements
Topic: Social Media Suport In Game
Replies: 5
Views: 530

Re: Social Media Suport In Game

Same problem. Such phone apps and the very OS are continually updated when the API change (probably the very next hours!). There's no native engine for that for the above reasons. Is not only sending an image, is the transfer protocol (the internal way of "sharing") that entirely change, while you a...
by gas
Tue Jan 28, 2020 8:18 pm
Forum: Ren'Py Questions and Announcements
Topic: My animated main menu stays on top of my preferences/load/about screens
Replies: 4
Views: 300

Re: My animated main menu stays on top of my preferences/load/about screens

Ok, I was really on a rush, so my explanation was a bit rough, I'm very sorry. The structure is MAIN MENU +NAVIGATION or GAME MENU +the called screen +NAVIGATION So, if you want for an animation that play on the background of the main menu you should add it to the main_menu screen. If you want the s...
by gas
Tue Jan 28, 2020 7:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Social Media Suport In Game
Replies: 5
Views: 530

Re: Social Media Suport In Game

I think that is quite difficult to implement due the continual change in the API of such social networks, and also can pose some issue on cookie laws for Renpy Web (not speaking some issue on artist credits). Such function could probably force to continual updates and break games on a daily basis! Y...
by gas
Tue Jan 28, 2020 9:49 am
Forum: Ren'Py Questions and Announcements
Topic: My animated main menu stays on top of my preferences/load/about screens
Replies: 4
Views: 300

Re: My animated main menu stays on top of my preferences/load/about screens

That something actually enervating of the new gui, and totally hard to grasp. navigation is called by game_menu(), responsible to set areas of the screen, and calling the actual screen on the right and navigation on the left. What happen is that navigation is ON TOP of everything else. What you can ...
by gas
Tue Jan 28, 2020 9:39 am
Forum: Ren'Py Questions and Announcements
Topic: Conditional imagebutton [SOLVED]
Replies: 5
Views: 270

Re: Conditional imagebutton

AddToSet is for other types than ints (it append that value to the end of a list or set).
You need SetVariable("time", time+1).

(Sorry, I wrote it the same exact moment the above reply!)
by gas
Tue Jan 28, 2020 7:32 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Runs off the screen on hover
Replies: 2
Views: 238

Re: Runs off the screen on hover

I don't understand the question. Your vboxes and hboxes got no style properties, so they automatically rearrange to fill up available space at each interaction. It's always up to you to give a relative or absolute size, if not renpy split fairly and arrange containers to fill up all the available sp...
by gas
Sun Jan 26, 2020 9:48 pm
Forum: Ren'Py Questions and Announcements
Topic: ATL sprite crossfade?
Replies: 6
Views: 296

Re: ATL sprite crossfade?

What you want to obtain can't be done with ATL. You want to crossfade two pictures named the same way. The effect is having the same picture apply the entire alpha reduction, then the entire alpha rising. You need a transition. I dunno if that could help you (no way of testing it right now), but thi...
by gas
Sat Jan 25, 2020 8:21 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I get a integer from FilePageNameInputValue?
Replies: 1
Views: 232

Re: How do I get a integer from FilePageNameInputValue?

FileCurrentPage()
Returns the current file page as a string.

So, probably

Code: Select all

$ page_num=int(FileCurrentPage())
But beware that this turn a bit messy if you're in the "quick" or "auto" page.
by gas
Sat Jan 25, 2020 8:00 pm
Forum: Ren'Py Questions and Announcements
Topic: Slider thumb image looks pixelated?
Replies: 1
Views: 233

Re: Slider thumb image looks pixelated?

Apply to the thumb image style properties.

Code: Select all

thumb "gui/slider/horizontal_[prefix_]thumb.png" xsize 20 ysize 50
Obviously change with your values.
That should do the trick.
by gas
Tue Jan 21, 2020 4:54 am
Forum: Ren'Py Questions and Announcements
Topic: I have two loading screens by mistake?
Replies: 7
Views: 364

Re: I have two loading screens by mistake?

Sorry, but you're continually posting a navigation screen calling it "main menu", and not the actual main_menu().

I'm quite sure the whole error come from a wrong main_menu() screen and contexts, but I can't tell until you post that code.
by gas
Mon Jan 20, 2020 2:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]List and Index
Replies: 2
Views: 201

Re: List and Index

EDIT (my bad).

That's exactly what dictionaries are made for.

Code: Select all

default mylist = {"Event1": False, "Event2": False}
and use default, not define, you want to apply some change.