Pedrp's Forum Posts

  • 3 posts
  • With text box I managed as follows:shuffled the array,generated the value of X,0 and then deleted the element x,0, after that the array was automatically reorganized and the positionx,0 gained a new value, so when I repeated the action, I just shuffled the array elements again and repeated the process, since the previous result would not be repeated due to having been deleted

    My problem is generating the sprites without repetition from what I have in the array. The idea was to go through the array and only generate the sprite if its UID was not in it, but I can only generate the card and write the UID to the array, when I need to generate a second card, I cannot consult the array and only generate the card if his UID is not there. I think this happens because I can't consult a UID of a sprite that hasn't been created yet, maybe I need to create and destroy it if the UID is in the array

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much.

    I'll take a look at your material and get back to you with more questions if there are still any.

  • Hello!

    At the beginning of the turn of my card game I create an object from the cards family in an empty slot in the player's hand and store the UID of this object in my array. Before creating the next card, I would like to compare its UID with what exists in the array, and not creating it if the uid of the letter already exists, would be a way to avoid creating repeated letters, could you help me?

  • 3 posts