odiusfly's Recent Forum Activity

  • Hey guys!

    I need to pick in a text everything before and after a character.

    What need to use? Regex? Or something else?

    Example:
    
    -Text: 100,Hello
    --Button1 Result: 100
    ---Button2 Result: Hello[/code:2tlpdr0l]
    So what i need is to use 2 different buttons, 2 different lines of code.
    
    The first button is to pick everything before "," symbol, so in this example we have "100"
    And the second button is to pick everything after "," symbol, so in this example we have "Hello"
    
    Any help? Thanks!
  • You do not have permission to view this post

  • Thanks for your help my friend!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys! Can someone help me please? I want to count and get characters in text based on buttons. Below what i need:

    Example:

    1 Text:
    HELLO
    BYE
    
    3 Buttons[/code:11d5bsz2]
    
    [b]Button 1 (Count lines)[/b]:
    Answer: In this example need to appear "2". We have 2 lines in text.
    
    [b]Button 2 (Count characters)[/b]:
    Answer: In this example need to appear "5" for the first line and "3" for the second line.
    
    [b]Button 3 (Get a character from line)[/b]:
    Answer: If for example i choose from the first line (HELLO) the second character, the result need to be the letter "E".
    
    [h2]Can someone help me please? Thanks![/h2]
  • alextro

    You 're the best bro!

  • I understand, thanks again.

  • The reason is personal, i build a project and pathfinding on what i work no working 100%. Just i need to know a better/different solution. I think can exist, no?

    When you say "custom pathfinding" you mean to create something with sprites? A fake path?

  • I know pathfinding is the best solution but there is a reason no use pathfinding behavior in this example.

    I check the links but sorry, if not see at action with a capx example i don't understand how to programming.

    Maybe it's simple without pathfinding but maybe not.

    Sorry but it's too complex for me, that's why i ask for help.

    By the way, thanks for your reply.

  • Hey guys!

    Is there any way to avoid obstacles without to use a pathfinding behavior?

    I want to move each time the player on Touch.X / Touch.Y

    So when player is moving to X,Y position to avoid all obstacles on his way.

    Any help, ideas? Thanks!

  • I know, this topic is old but is there any way, anyone to have any capx from this topic? I'm working on similar project and i'm looking for the code to help me. Thanks!

  • alextro

    Awesome! Thanks again for your help bro.

  • Thanks!

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