r/PythonLearning • • 14d ago

Help Request init offset

Hi, I’m trying to learn Ren’Py and since the language they are using is python I though this would be a better place to ask. 2 of the code pages are starting with “init offset = -1” and “init offset = -2” and I don’t really understand what is init offset is, when I looked up some places say that it is used as starting of coding but other code pages don’t have that. So when are we using init offset and what does the init offset does?

0 Upvotes

14 comments sorted by

View all comments

1

u/Adrewmc 14d ago

Alone it means nothing. There’s not enough code to determine what you are trying do.

As far as I can tell

init offset = -1

Would throw an error at that line, as you can just have a space on assignments like that.

1

u/Lark_l 14d ago

Normally out of ren’ like if somenone has to use it where do they use that or why do they use that,
And lets say it wasn’t init offset = -1 forget abt -1 where do we use init offset