Page 1 of 1

How important is () when making screens?

Posted: Sun Mar 29, 2020 11:42 pm
by Westeford
I might have to elaborate later, but...
When making screens how important is the ()?
For example:

Code: Select all

screen testimony(): #<-That () is what I mean.
    imagemap:
        ground "debateui_ground"
        #Etcetera        
The reason I ask this is because when using "Check Script (Lint)" it complains when I leave out the () on any screen, but when I add the () to one specific screen, it breaks the game by essentially punishing players who click rapidly.

I guess what I'm asking is are there any real difference between "screen testimony:" and "screen testimony():"?

Sorry if this makes no sense. I'll try to elaborate later if need be.
Thanks for your time.

Re: How important is () when making screens?

Posted: Sun Mar 29, 2020 11:48 pm
by trooper6
There is a difference. It is best practice to put the parenthesis in. It makes the game run better.
See here: https://www.renpy.org/doc/html/screen_o ... meter-list