Search found 697 matches

by gas
Wed May 20, 2020 4:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action
Replies: 14
Views: 240

Re: Imagebutton action

They are parameters that you can use for variables used only inside the screen and you can pass to change the value when you show/call the screen. screen myscreen (name = "greg") text "[name]" So you can do... show screen myscreen(name = "gas") and the name 'gas' will be used instead. If you don't p...
by gas
Wed May 20, 2020 11:48 am
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action
Replies: 14
Views: 240

Re: Imagebutton action

Thanks guys! Yes! This is it imagebutton auto "whatever_%s.png" action If('the_thing == "hello"' , true = [SetVariable("the_variable", thevariable+1)], false = [SetVariable("the_variable", the_variable+2)]) but how to add more elif in this line? In my case I can't use the second example you did Gas...
by gas
Wed May 20, 2020 10:54 am
Forum: Ren'Py Questions and Announcements
Topic: Create a "like" button, which only counts up once
Replies: 4
Views: 273

Re: Create a "like" button, which only counts up once

Yes, my wrong, I didn't understood that you're calling an object as the screen parameter. I'll STRONGLY suggest you to make a copy of the original script and use a copy with these changes, as I can't predict what will happen and probably you want a quick way to restore the originals. So... It's a bi...
by gas
Wed May 20, 2020 10:02 am
Forum: Ren'Py Cookbook
Topic: Pink Engine: A framework for using Tiled-created orthogonal maps in Ren'py
Replies: 4
Views: 259

Re: Pink Engine: A framework for using Tiled-created orthogonal maps in Ren'py

I've did a try. I've experienced some error in the movement buffer, I think is due how the first touch just change facing. Sometime the player move two squares in vertical movement. I think the facing should change AND the movement should trigger at the same input. Or at least you should include a f...
by gas
Wed May 20, 2020 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: Day/Night/Weather-System with im.ColorMatrix-Shaders?
Replies: 7
Views: 273

Re: Day/Night/Weather-System with im.ColorMatrix-Shaders?

The method is avoided as is quite more convenient to pre-process images than to process them at runtime if the light is static. I mean: a matrix recolor shader got any sense only if you change colors at an interaction, using GPU shaders, like for interactive lighting in a 3d setting (or some palette...
by gas
Wed May 20, 2020 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action
Replies: 14
Views: 240

Re: Imagebutton action

In that specific case... imagebutton auto "whatever_%s.png" action If('the_thing == "hello"' , true = [SetVariable("the_variable", thevariable+1)], false = [SetVariable("the_variable", the_variable+2)]) This add +1 if 'the_thing' is hello, and +2 any other case. Mind that this work only for a couple...
by gas
Wed May 20, 2020 7:37 am
Forum: Ren'Py Questions and Announcements
Topic: Change the color of the dialog boxes
Replies: 6
Views: 166

Re: Change the color of the dialog boxes

My approach, just that: # set the default color prefix for this character text init python: if persistent.maple_color == None: persistent.maple_color = "{color=#aaa}" define m = Character("Maple", what_prefix = '[persistent.maple_color]', what_suffix ='{/color}') later... vbox: style_prefix "radio" ...
by gas
Wed May 20, 2020 7:11 am
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action
Replies: 14
Views: 240

Re: Imagebutton action

Code: Select all

imagebutton auto "whatever_%s.png" action SetVariable("thevariable", thevariable+1)
by gas
Wed May 20, 2020 5:52 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] NVL menu is showing up for the ADV menu as well?
Replies: 5
Views: 243

Re: NVL menu is showing up for the ADV menu as well?

I'm not totally sure, but probably you can leave the normal menu behaviour as default, and use the menu argument to determine when a menu is a NVL one or a normal one. # this one should be seen as NVL mode... menu (nvl = True): "Gas is a genius": jump no_way "Gas is stupid": jump more_probably
by gas
Wed May 20, 2020 5:39 am
Forum: Ren'Py Questions and Announcements
Topic: About a Patch or file that will replace words in the main script.rpy
Replies: 9
Views: 655

Re: About a Patch or file that will replace words in the main script.rpy

Gopi wrote:
Wed May 20, 2020 3:16 am
Hello everyone I'm new to Ren'Py coding, I created patch which works good in windows version but when I converted into android version the patch doesn't recognise and going into default mode , can anyone help me
It would be of more help if you create a new post about, with more details.
by gas
Sun May 17, 2020 7:59 am
Forum: Ren'Py Questions and Announcements
Topic: Create a "like" button, which only counts up once
Replies: 4
Views: 273

Re: Create a "like" button, which only counts up once

As suggested, pass other arguments. For example: mychat.add_chat(type="chat_entry", msg="Hello world", nick="darkflamemaster", avatar="dfm chat avatar", likes = 3, liked = False) and this should do the trick: screen chat_picture(pic=None, nick=None, avatar=None, posttime=None, likes = 0, liked = Fal...
by gas
Sun May 17, 2020 7:24 am
Forum: Ren'Py Questions and Announcements
Topic: Error messages
Replies: 1
Views: 124

Re: Error messages

That depend on the app you're using. It should have a find/replace feature. Anyway, an app that doesn't allow to use 4 spaces as indentation is not the correct one for long coding. Never thought about an old and cheap Windows notebook, just for such operations? You can move files around later, but i...
by gas
Sat May 16, 2020 12:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Buttons and Doors
Replies: 15
Views: 390

Re: Buttons and Doors

For your knowldge: you don't need to define a screen where it should be used. In fact during execution, screen definitions are skipped. You can write down the screens wherever you want. Just before the game is launched, renpy go scanning thru all your scripts, find the screens definitions and memori...
by gas
Fri May 15, 2020 5:02 am
Forum: Development of Ren'Py
Topic: SMS code
Replies: 1
Views: 271

Re: Gallery Lock & Unlock

A: you skipped the docs where it does show how to create a gallery with given objects
B: you skipped the docs where it does talk of persistents (a possible alternative)
C: that's the wrong section of the forum. 'Questions' is. Don't double post, wait for some admin to move it in the proper section.