Strange problem with Arrays

This forum is currently in read-only mode.
From the Asset Store
Strange factory themed set of tiles for your platformer game
  • Yo!

    I've been experimenting alot with functions and arrays lately and have encountered a problem that i can't really grasp the logic of.

    A reconstruction of the problem:

    (Run it in debug mode and select the array to see the problem)

    The problem seems to arise when I try to store something in an array at the the exact same time as I store something else (or that is what I assume I am doing). This results in only one of the values being stored.

    In my eyes it has to be some kind of bug, but undoubtedly it's surely my inexperience that blinds me from the real problem once again .

    Thankfull for any kind of comments!


  • I think it has something to do with the picking or collisions for that matter, as text objects aren't too great for that. Text objects don't even have collision conditions.

    Still it seems to be easily fixed by adding a For each object loop, like this:

    <img src="">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Amazing!

    Thanks a bunch! Once again I'm looking the wrong way. ^^

    Though I don't fully understand the need for the 'For Each Object' in this particular case (since 'collision with' should automaticly picke the right object),

    but I guess it's true what you say about text objects (not built for collision).

    Thanks again!

  • A bit off-topic... I don't know how this would work, but I wish we had a feature integrated with the forum where we can lasso events (or an entire block of events) and then copy and paste them into the forums as a picture. I've never liked seeing them typed out, the picture always communicates better to me because it's exact in every way.

    I find the pics to be so much more helpful than just text, but I think the current act of taking a screenshot, cutting the screenshot, and then uploading it to some site may be discouraging people from posting pics of event examples.

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