adagar's Forum Posts

  • Usually you want to go to the "How do I...?" subforum for these sorts of questions. This is more of a "LFG" type of subforum.

    You can set the X & Y of an object with an action. Just put those variables to whatever the center of your screen is (window size/2)

  • Steps to reproduce:

    1. Put array in family

    2. Change layouts

    3. Try to print array data

    Observed result:

    Array is empty (prints 0)

    Expected result:

    Array prints what was stored on it

    Browsers affected:

    Chrome: yes/no

    Firefox: yes/no

    Internet Explorer: yes/no

    Operating system & service pack:

    Construct 2 version:

    r120.2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah you're right adagar, the array disappears (array.count = 0) when you switch layouts or restart the same layout.

    ramones and... I assume that's not the behavior it's *supposed* to have?

    It doesn't seem to clear it out if it's not part of a family...

  • I was having weird array behaviors as well. If I put an array into a family, it won't work past the first layout.

  • Confirmed: The only difference between the arrays clearing and not clearing is whether it is inside a family or not. Ashley is there something I'm overlooking?

  • Did so. What I did that seemed to fix the problem was taking the array out of its family (deleted the family, deleting all references to it). Going to put it back together in steps to see exactly where things break down.

  • :\ I don't really feel comfortable posting this whole project that we've been working on for months online. I'll try to cut out as much core stuff as I can while keeping the problem intact and come back.

  • danuyos

    The arrays are indeed global.

    tanoshimi

    I've tried putting the include in other layouts, but it still doesn't work. Even if I totally move it to another layout, and put the exact same call to print as I did the main menu, it still returns zero. It seems as though the Event Sheet that populates only wants to work in one layout, and the arrays refuse to carry over to the others.

    I'm pulling my hair out over this thing at this point, cos it isn't making any sense. I must have spent 4 hours trying to figure this thing out today.

  • In my first layout I'm setting the values for this array of help-screens. After it's done, I have it print a value to test if it worked alright, which succeeds. If I put that same line print on the next layout, it returns as 0. When I try doing this with an otherwise blank project, it works fine. Ideas?

  • Yea, my bad. Couldn't find a place to delete the post after realizing I was in the wrong forum.

  • Yea I had a look at that unminified code and it's totally nuts. I'll read more into using the SDK. Thank all.

  • I saw this in the C2 technology blog "The javascript code to your game is minified and obfuscated with Google's Closure Compiler. This reduces the download size and makes it extremely difficult for anybody to reverse engineer your game."

    Is there some way of getting source code out of C2 that isnon-minified, non-obfuscated, and non-encrypted? I could see that being a useful way to start from a game base, and then adding on other elements that aren't supported by C2.

  • Have any examples of your work?

  • I saw this a few days ago, and while it was a neat concept, I had a heck of a time getting anything to work right. Now, it's fantastic! I never really understood what a sythesizer *did*, but now I totally do! Awesome job!

  • considering whacky state of import, it'd still be nice to get an ETA. It fixed one bug I was having where turning off silent would bring up muted sounds, but this sounds even worse!