Problem with functions and tiles

Discussion and feedback on Construct 2

Post » Mon Mar 02, 2015 9:46 pm

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.
Posts: 24
Reputation: 531

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 1 guest