IF [ARRAY] not found value THEN -> set text not found value

0 favourites
  • 5 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • I cant find any question like this in the forum or a tutorial, maybe this cant be done by the way that i am thinking, i have a loop like you can see in the image, if the array contains the value 0 in Y7 then -> action, but my other events modify the array Y7 value then sometimes my array will not contain the 0 value in Y7, i want that when i call the function if the value 0 isn't in the array then set text: value not found, i have different values in the array that change with the other events then i cant use a specific value to do this.

  • It sounds as if an else would do this.

    But I'm not sure I understand what you mean.

    Edit: Like this, I mean:

  • It sounds as if an else would do this.

    But I'm not sure I understand what you mean.

    Edit: Like this, I mean:

    i tried else and didn't work, i just want if the array not found 0 value then set text value not found.

  • Arrays are broken.

    http://i.imgur.com/HOT708n.png?1

    http://i.imgur.com/Pyr3wrI.png

    Turns out, the array needed to be larger than the scope. The array width, height etc. are not zero based. They are the count of the number of entries on that dimension.

    If your array height is 7, try making it 8.

    This worked:

    The capx I used: [mediafire]

  • Try Construct 3

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

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

    Arrays are broken. >

    http://i.imgur.com/HOT708n.png?1

    >

    http://i.imgur.com/Pyr3wrI.png

    >

    Turns out, the array needed to be larger than the scope. The array width, height etc. are not zero based. They are the count of the number of entries on that dimension.

    If your array height is 7, try making it 8.

    This worked:

    The capx I used: [mediafire]

    I recheck the capx, i think is working now, thank you so much!

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