the siks's Forum Posts

  • 9 posts
  • I was starting to think there's a limit to how much stuff you can put into an xml file when I figured out the problem was that I used '#' as the name that is used to identify a node. (If you use Notepad++ it's the red text that appears after the node name like this: <Button #="Drop">

    Pretty sure this isn't the first time I've used a hash and caused my XML not to load and I get absolutely no notification of any problems within the XML and have my entire game not function properly. Is there some list of conditions that can cause errors or some way to debug an XML file?

    I should probably mention I haven't learnt XML as a language, I just know how to write the data in an XML format and read it in Construct. So I don't know all these things.

  • Here's an example.

    I want to set each X of an array to the value of these variables.

  • That's what I'm trying to do. I want to create a instance variable and them into the array.

    Thanks but I was referring to local/global variables. Even if I referenced an object's instance variable I couldn't do something like:

    object.instance_variable_ & loopindex

    What I want to do is if I had variables named var_1, var_2, var_3 and so on I'd like to refer to each of those.

  • I know, poor title.

    I'm wondering if it's in any way possible to refer to a variable based on a variable expression. For example I have a few variables, object_info_0, object_info_1 and so on...

    I'm trying to put each variable's contents into a co-ordinate of an array but from what I've tried I can't write an expression anything like:

    object_info_ & array.x

    or something along the lines.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • nvm I found it, thanks. Works like a charm now.

  • Thanks but the persistent objects aren't reset on layout reset. Where can I find this action to reset them?

  • Well level 1 is made up of multiple layouts, if the player wishes to replay a level the coins and collectables should be reset but the coins shouldn't respawn throughout moving across the level 1 layouts.

  • Oh thanks, I should read into what all the behaviours do. But how would I reset a coins state to its original after the level has been completely finished?

  • I have a level full of coins and the player has the ability to enter different layouts and return. I have an array holding 0 and 1s for each of the coins in the level but I do not know how I can destroy or remove a certain coin using its IID.

  • 9 posts