Obi554's Forum Posts

  • Thank you so much it's working now.

  • Hi again,

    I got as far as this:

    i.imgur.com/oC0s9NF.jpg

    But i'm still confused as the array isn't showing as an object I can use for events.

    Many thanks.

  • Thanks,

    I'm trying to get the hang of it....

    What is a tag?

  • Okay,

    So I've created an "array as json" file in the project files location, which allows me to edit the contents of the array.

    How do I link the array into my events sheet? I can't seem to call to it as it's not an actual array inside my objects.

    Thanks for any help.

  • Have you increased the size?

    Thanks for your message.

    Turns out I wasn't going mad at all - there's a problem with my laptop, and it was stalling for some reason and not saving what I entered.

    I just tried it this morning in a completely new file after reading your message and it works fine.

    Many thanks.

  • Thanks so much, I really appreciate this.

    Next question - sorry if it's a bit dumb....lol but once the array editor is open how do I actually enter data? I tried typing it directly into the box like in Excel, but it disappears when I leave the box.

    I know there's something I'm missing.

    Thanks for any help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oh my god thanks so much for this!

    The online tutorial for construct 3 is horrible.

  • Hi,

    I can't seem to find how to open the new dictionary/array editor?

    It's listed in the Construct 3 online help manual, but it doesn't specifically say how to open it for editing.

    Can someone help?

    Many thanks.

  • Hi, is this capx still available?

  • Hi,

    My game contains hundreds of text objects which display information about ship stats. For example:

    Weapon 1: name

    Ammo: name + rounds

    Overload: on/off

    Weapon 2: name

    etc

    etc

    So, for each text object I have created I have used a separate text object. When I first used constructed I tried creating a new text object by copying and pasting one I had already made so I didnt have to go through the menu and re-edit and so on. I then realised that construct does not create a new text object when you copy and paste, but a new 'instance' of the object.

    My question is..am I understanding the software incorrectly by creating hundreds of individual text objects all with individual names? Could I save myself time by grouping the weapon 1 stats above into a single object and copying and pasting it to make 8 separate instances...representing all 8 weapon slots on my ship?

    I saw someone in a youtube video quickly creating duplicates of text objects/buttons and it got me really confused, as I thought construct doesnt allow you to rename object instances.

    Which makes me feel like I dont understand what an instance is in the first place...?

    Hope I'm making sense.

  • Your link to the explanation page isn't working...

  • I would try to arrange the events in groups and use lokal group variables. For me that is much more clearer and lokal variables are some times the better choice over instance or global variables.

    What is a local variable? I think I made one by accident a while back when I tried to put a global variable inside a group.

  • Check this link:

    There are a few good points why you shouldn't use many global variables in your games.

    You can use that Globals plugin, or any other "dummy" object to store instance variables, for example a small invisible sprite. As far as I know, there is no limit for a number of instance variables.

    Or instead of instance variables you can use a dictionary. Create a separate instance of the dictionary for each ship and store as many keys as you need.

    Thanks dop2000. Your response is great as always and puts me in a direction to learn more about the programme.

    I might play around with the dictionary vs invisible sprite in a simple construct 2 programme to see how they work, and ease of functionality for storing lots of variables. I'm someone who likes things to be organised well so we'll see how it works haven't used a dictionary yet...

  • Do you mean in the editor?

    I use folders to organize objects, so I usually do not have to search that long for an object.

    Also, if you select the project window, you can press the first letter(s) of your object on your keyboard and it jumps to that object.

    I've tried this and it only jumps to the first item in the menu which starts with that letter, not necessarily in the objects list, it could be a layout.

  • This is really time consuming. A few days ago I spent nearly 10 minutes searching for just a few objects to permanently delete. I have hundreds of text objects in my game, and I've tried naming everything to an ordered sequence, but I find scrolling down that side bar to search for a name really inefficient and wastes time. I don't see why I can't simply permanently delete an object by using right-click, or why I can't at least easily link to the object in the side-menu using right click so I can permanently destroy it.