odiusfly's Recent Forum Activity

  • Hello, don't hesitate to contact me via email:

    contact [at] odiusfly.com

    Thanks in advance,

    Kyriakos

    odiusfly.com

  • dop2000 Thanks for your answer!!! :)

  • Hello guys! How do I select a specific text line?

    I use a text object for example this:

    Lorem Ipsum is

    simply dummy

    text of

    the printing

    and typesetting

    industry.

    So let's say i want to go with my mouse (click or touch) over second line: "simply dummy".

    Is there any way to get this value? Text as is or just the number of line.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're right! Ok, i edit it and works great!!! Again, many thanks for you help, i really appreciate it!!! :)

  • R0J0hound First of all many thanks, awesome example!

    I found a bug. Just change second text box to this:

    o e o l d

    And you will get this result:

    3 1 3 1 2

    But "d" not exist at all. And for some reason as "o" exist to array 1 gives me 3 as result to both.

    I think something, maybe can help you to find what line need to change or remove. So, what about the first step to be a full calculation if not exist a letter at all, so to completely remove it and gives 3. And then continue with other steps... Do you think can works?

  • Ok, thanks again for your help!!!

  • Hi R0J0hound unfortunately not working.

    Also in your part, is missing something?

    1. -- compare: a.at(i) = "-"
    2. -- --
    3. -- else

    You compare "a" without set a value? Just in case missing...

    Can you test it to your construct 2 or 3 and share a file to check?

    Thank you!

  • Hi R0J0hound , first of all many thanks, very good example so far.

    But i found a strange issue, take a look below my result:

    Example1:

    #__---a---______---b---_______---c---

    0____H__________O___________2___

    1____E_____ _____E___________1___

    2____L___________L___________1___

    3____L___________L___________1___

    4____O__________H___________2___

    True!

    Example2:

    #__---a---______---b---_______---c---

    0____H__________O___________2___

    1____E_____ _____E___________1___

    2____L___________L___________1___

    3____L___________O___________3___

    4____O__________H___________2___

    I change line 3 and it's True again! All good... but:

    Example3:

    #__---a---_______---b---_______---c---

    0____H__________O___________2___

    1____E_____ _____E___________1___

    2____L___________O___________2___

    3____L___________L___________3___

    4____O__________H___________2___

    ... This time i change line 2, and here is the problem.

    For some reason line 3 gives me 3 instead 1. And line 2 gives me 2 instead 3.

    Also i give a different letter and get wrong result again:

    Example3:

    #__---a---_______---b---_______---c---

    0____H___________D___________2___

    I get 2 instead 3.

    Thank you!

  • Hello alextro , R0J0hound ,

    is there a possibility to spend free time to check the part that missing?

    Many thanks guys, i appreciate it!

  • You do not have permission to view this post

  • Hello! Please check your inbox! :)

  • Thanks alextro for your help!!! :)

odiusfly's avatar

odiusfly

Member since 15 Jul, 2014

Twitter
odiusfly has 6 followers

Connect with odiusfly

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies