humbrie's Forum Posts

  • 4 posts
  • Thanks for clarification!

  • Problem Description

    Immedeatly after destroying an object, which is part of the family, that family is not being "updated". I have similar issues on creating objects by Func´s. The uploaded example contains only the destroying issue.

    Attach a Capx

    see uploaded file

    Description of Capx

    On touch (end): 2 sprites get destroyed and created, inbetween debug messages show the familiy.Count, which is partly wrong during the process.

    Steps to Reproduce Bug

    • Touch/Klick anywhere
    • See debug message, especially: ("Family.Count = 2" -> "sprite 1 and 2 destroyed" -> "Family.Count = 2")
    • Enable "Wait 1.0s"
    • See debug message, especially: ("Family.Count = 2" -> "sprite 1 and 2 destroyed" -> "Family.Count = 0")

    Observed Result

    Family membership is not being updated immedeatly after creating/destroying objects? Or between Func calls?

    Expected Result

    see step 3-4 (with Wait 1.0)

    Affected Browsers

    • Chrome: (YES/)
    • FireFox: (YES/)
    • Internet Explorer: (?)

    Operating System and Service Pack

    Windows 8 SP1

    Construct 2 Version ID

    R168 64bit

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Doh! I´ve set the Depth of the Array to 0. After reading (again!) the manual more carefully, i´ve recognized, that this will result into an invalid array (in DEbug view you can even see the total amount of Elements = 0).

    While i solved this issue, it should be avoidable by construct itself (usability !!!).

    Jakob

  • I have an 2-dim array, where i want to remember my level setup based on tiles. After i´ve generated a room, i want to set it´s number into my memory (the array) for every tile it occupies. I´ve tried a nested loop, write the number in to the affected x,y coordinates and try to read it again to log it into a textbox.

    but the textbox is filled with zero´s although the Room.Nr is 1. I´ve also tried a fixed value, but still zeros. Here is my "algorithm":

    https://www.dropbox.com/s/parsfwjf0rjakdb/update-array-with-nested-loop.PNG

    Any idea, why it is not working? The iteration seems correct (tested by another logging of loopindex x;y)

  • 4 posts