- Jun 30, 2018
- 3,142
- 8,472
recursion is, when a function is calling itself. (Like function sum(x) => if x=0 then return x else return (x + sum(x-1)))I have a question non related with the game but can anyone tell me if exist a solution for the problem in Renpy "Maximum recursion depth exceeded"? I can´t save my game by that.
[which will add all numbers between 0 and x btw]
Each function call will be stored and put on hold until the return of the new called function.
The numbers of "opened/started functions at same time is called "Recursion depth".
This recursion depth depends on the used programming language and can't be changed at all.
The only way to "change" or solve your problem is to code in a way not using recursion for that part.
Last edited: