Loop passes 1 element to list 2 times repeatedly

0 favourites
  • 4 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • friends imagine such a picture

    there are 2 list plugins on stage

    on the first name of the sender of the sms and on the second the text of the sms.

    When I press the button, the entire text of the SMS, along with the name of the sender, goes to the textbox, and there users can read their correspondence. this is how it should be

    a:hello

    b: hello who are you

    c: i am spider man

    d: an i very cool

    but I see this text that is repeated several times

    a:hello

    b: hello who are you

    c: i am spider man

    d: an i very coola: hello

    b: hello who are you

    c: i am spider man

    d: an i very cool

    If I stop the cycle, then nothing is written; if I stop after a couple of seconds, SMS is still duplicated

    or blank lines

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have duplicate "кто_написал2 Add item" actions on your screenshot.

    Also, "stop loop" after a delay will have no effect.

  • нет.есть 2 плагина "лист": "кто написал" и "что написал".в них много имен а в другом много смс написанные этими пользователями.все данные в которых упоминается имя "ilya" ( то есть все смс которые написал ilyas и

    данные из "кто написал" и "что написал" идут в плагины

    "кто написал2" а смс в "что написал2"

    то есть из первой пары листов во вторую пишутся сообщения только одного определенного пользователя,все смс которые написал илья.

    а уже оттуда они переходят в текстбокс но переходят два раза почему то а мне нужно что бы 1 раз было

    On english

    no. there are 2 plug-ins "sheet": "who wrote" and "what wrote". they have a lot of names and in the other there are a lot of sms written by these users. all the data that mentions the name "ilya" (that is, all sms written by ilyas and data from "who wrote" and "what wrote" go to plugins "who wrote2" and sms in "what wrote" that is, from the first pair of sheets, messages of only one specific user are written to the second, all the SMS that Ilya wrote. and from there they go to the textbox but go twice for some reason, but I need it to be 1 time

  • Sorry, you are right, I didn't that there are different lists.

    Even in Russian I don't understand your problem.. Can you post a demo project?

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