Search found 835 matches

by gas
Tue Jan 28, 2020 7:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Social Media Suport In Game
Replies: 6
Views: 1363

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: 635

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: 590

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: 370

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: 642

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: 342

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: 380

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: 780

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: 359

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.
by gas
Mon Jan 20, 2020 7:21 am
Forum: Ren'Py Questions and Announcements
Topic: Button "PRESSED" state, I got it working! Or I should say [SOLVED]
Replies: 2
Views: 1109

Re: Button "PRESSED" state, I got it working! Or I should say [SOLVED]

You should post it in the cookbook section too, people can find it helpfull.
by gas
Mon Jan 20, 2020 7:13 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]A Call Label in A For Loop
Replies: 3
Views: 417

Re: A Call Label in A For Loop

I don't see the point when you can use a 'call expression' instead of using python equivalents. Anyway, the call statement push the NEXT statement in the return stack (for obvious reasons), so probably the iterator method isn't just called again after the first iteration. You can try a while: statem...
by gas
Mon Jan 20, 2020 6:39 am
Forum: Ren'Py Questions and Announcements
Topic: Custom load slot screenshot [SOLVED]
Replies: 8
Views: 971

Re: Custom load slot screenshot [help]

You can use a JSON function to determine a slot icon to show based on game values. Let's pretend you have a value called 'lover', that register the character you're dating. There are 3 of them, with a value from 0 to 2 to identify them. If you're dating no one, you have your face instead. Add the JS...
by gas
Mon Jan 20, 2020 6:30 am
Forum: Ren'Py Questions and Announcements
Topic: How to 'stop' game when I show player interactivemap?
Replies: 8
Views: 980

Re: How to 'stop' game when I show player interactivemap?

strayerror wrote: Sun Jan 19, 2020 11:38 pm ...
[/code]
You don't need a Return() that way, you can simply Hide() as action. That doesn't require the need to directly hide the screen.
Anyway, I suppose that button is there to actually show somethingm, probably that map screen... Who knows XD.
by gas
Sun Jan 19, 2020 8:15 pm
Forum: Ren'Py Questions and Announcements
Topic: How to 'stop' game when I show player interactivemap?
Replies: 8
Views: 980

Re: How to 'stop' game when I show player interactivemap?

I dunno if you want for that "text" to stay put, but more probably what you want for is to CALL that screen. call screen mybutton The execution stop until something do a Return action. Your button can Show another screen the same and execution doesn't proceed as long as you don't give a Re...