How do I use an Array as a spawning system?

Not favoritedFavorited Favorited 0 favourites
  • 6 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • Im trying to create a spawning system for a Tower Defence game. I was looking at the following tutorial: youtu.be/wB8mIAHf4E0. At 2:45 they use the Event sheet to look at the array to see the amount of that enemy type to spawn.

    This does not seem to work for my game. The Event sheet does not seem to have any reference to the array.

    I have also tried looking at the following documentation, but found that this does not work either:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/json

    Am I missing something, like a setting? If anyone has a better way of doing this, that would be super helpful.

  • You mean you can't add an Array or JSON object to your project?

    Check "Use simplified interface" in program settings and make sure it's disabled.

  • I can add. When it comes to using the Event sheet, it doesn't seem to know the array exists. I have looked at the documentation and have the JSON and AJAX but still cant make it work.

  • I used the Debugger, and I can see that information has been loaded into the array.

    I set a text box as one of the cells in the Array to see if I could get the value to show. It came back with the value 0, it shouldn't be that. Am I using the wrong expression here?

  • When it comes to using the Event sheet, it doesn't seem to know the array exists.

    What do you mean by that? You wrote yourself that you are using the array object in an expression.

    Can you show a screenshot of the entire event sheet - where you populate and access the array? Maybe you are trying to read from the array before the data is loaded?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello. I'm sorry for getting into your question a bit.

    I noticed in this guy's video that he has some kind of plugin for Construct3. Does anyone know what he does?

    My search on the photo didn't give me anything.

Jump to:
Active Users
There are 1 visitors browsing this topic (1 users and 0 guests)