Old Hierarchy templates causing infinite loops

0 favourites
  • 1 posts
From the Asset Store
For Adventure, Action, Heroes, Sci-fi and Action-RPG games.
  • This is just incase anyone else has ran into a similar issue:

    My project is quite old and I was using the Create Object action using an old hierarchy template. I had not used hierarchies for a while in my project as the code was just disabled for ages, and when I came back to it, I ran into a big issue that took me a little bit to fix.

    This was causing an infinite loop of errors to be logged to the console which bled into my character spawning system. I noticed this when I tried to create an object from the hierarchy whilst creating a character sprite at the same time, it started spawning character sprites at the same rate as the errors being generated, so I had this flood of character sprites just infinitely spawning along with the infinite loop being logged about the heirarchy father's name in the console.

    So, I decided to try and fix this issue by reproducing it and reporting it as a bug but I discovered that creating a new project does not carry old templates for hierarchies, it just simply creates new ones for it self, so I can't report it as a bug.

    All I did was change the template name to something else in both the father of the heirarchy object and the name of the template to create from in the Create Object action, and this fixed the issue. Heirarchies now work fine after that.

    I hope this helps anyone running into it, otherwise feel free to share, I'm intersted if people are having similiar issues caused by hierarchies.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)