odiusfly's Forum Posts

  • Great! ; -)

  • Yes i thought an idea like this but it's a bit complex.. But i will try. Thanks again!

  • Thanks for your reply! Yes i imagine that.. but i thought there is another way, listbox to give me rights to write on it when i run my project.

  • Hey guys! I use a listbox.. So my listbox has 3 items:

    Today
    Car
    Hello[/code:2aq7bkpy]
    All good, when [b][u]i run[/u][/b] my project need to use 1 of 3 (or multiple). Ok! So my question:
    Can i click on listbox, and write a new item? Like a textbox.. Thanks!
  • blackhornet

    Awesome, Thanks!!! ; -)

  • Cool game! ; -)

  • Good day to all! I have a problem, i try to transfer my text to array without luck.

  • Choice 1: Imagine to write a big text with breaklines in a textbox inside construct 2.

    Choice 2: Now, the same text you can write in a .txt file on windows right? <-- Here is coming ajax plugin in case you want to insert in construct 2.

    Now you have a button.. Click and search for a "character, number whatever" inside your text.

    So this code, a regex code maybe to remove all the line of the "character, number whatever" and 1-2 (maybe 5-10) lines above and 1-2 (maybe 5-10) lines below.

    Hope you understand now! ; -)

    Kyatric

    Sorry, i edit my code example above.. You can see now!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No working.

  • Thank you for your reply.. but if i need to use a ready text from a file (ajax) for example, and don't want to use array? Can I?

    I think regex is the faster answer (or someone to find better idea of course), but unfortunately can't find the code which can remove above and below lines.

  • I find this: RegexReplace(Text.Text, ".*character.*\r?\n", "m", "")..

    .. But the result is to remove 1 line (the line with the "character" word) only.

    Can't find any regex to remove 1-2 lines above and 1-2 lines below for example.

  • Hey gus! I have an issue.. Is there any fast solution to remove lines of a text?

    Example:

    Hello there!
    This is a simple test.
    I need to remove this character and
    delete this line,
    and this line..
    Without remove this![/code:2tqvadkc]
    
    What i need, is to find the "character" word, and press delete button. After this to remove the lines above and below.. So to have this result:
    [code:2tqvadkc]This is a simple test.
    Without remove this![/code:2tqvadkc]
    
    Can i? Thank you!!!  ; -)
  • Nice work, Thanks! ; -)

  • Thank you!!! ; -)

  • Hey guys! Can someone help me to find the line of a character or number in text?

    I use 2 Text Plugins, 1 Text Box and 1 Button. So, we have:

    Text1 (Original):

    This is a test.
    Today!
    10
    Hello C2!!!
    100[/code:184pmp0f]
    
    [code:184pmp0f]TextBox -> I write "Today!"
    Button -> Click[/code:184pmp0f]
    
    Text2 (Result):
    [code:184pmp0f]1[/code:184pmp0f]
    
    To understand more, the lines of text as i think are:
    "This is a test." is 0
    "Today!" is 1
    "10" is 2
    "Hello C2!!!" is 3
    "100" is 4
    
    What i need to use? A Regex Search? Array? A simple method? Can someone help me? Thanks!