Pick by UID Not Working

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Here is my issue: I am trying to pick instances using values of their UID that I have stored in an array, but no instances are ever picked.

    This is the code I have so far, which is supposed to work as so:

    Player clicks glyph A, if there are any B glyphs to the right or left, change those to C glyphs.

    <img src="http://i40.tinypic.com/2euu3wk.png" border="0" />

    I have found out that reading the value of the array at position (X, 1) reads properly and I can set its value, however, the "pick instance" function never picks an instance and thus the proper frame of animation is never set (which represents a "change" in the glyph).

    I have tried commenting the deletion of the index at Level.CurX, but that has no effect on the object I am trying to delete.

    In fact, nothing seems to make it pick even incorrect glyphs by their UID, as I noted when I tried to simply destroy the instances to see if there was anything happening.

    The reason I have not linked any files is because there is nothing else to note that would have an effect on the code there. Every bit of what I am trying to do goes in that section.

    Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pick all glyph before you pick specified instance again.

    Explanation:

    On click: glyph 1 is picked (SOL has 1 glyph instance)

    -glyph 1 destroy

    --no glyph in SOL

    ---try picking by uid (which will look through the SOL which is empty)

    I hope my explanation is correct

  • Oh! I think I get it now. :) I will try again in the morning when my head is clear. Thanks for the tip!

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