I have a function that checks some objects at random coordinate, if its true, it does something and thats it. Else it calls that function again.
But this creates a recursion error. Why is it so? If it calls itself again, the previous instance of that function should end, no? What am I not understanding here?
Basically I check if there is tile on tilemap. Since there is no "check if there is tile" command in C2, I just check the tile state. Inverting the tile state check can do some funny things sometimes.
Develop games in your browser. Powerful, performant & highly capable.