odiusfly's Forum Posts

  • Thanks for your reply.

    Please check here:

    dropbox.com/s/4yfdvfs23nv2nv3/Physics.capx

    To understand more:

    The object moving in x,y (no matters, just example).

    Now, when you run the project, press "pause" and then "play" again, you will see the object "lose" the path (i have a line graphic just to see how is moving) and falling down.

    Note: I don't want the object to follow a "fake" line / path. The moving of the object it's just an example. Think to have more objects and moving in random directions and you want to pause and resume them again.

    So, this i need is "simple", i need to continue moving on path.

    Thanks!

  • Hey guys!

    I have a sprite(ball) with physics, i give to it a "Force", X=40 and Y=-140.

    Nothing strange, just an example.

    So, when i run the project the sprite(ball) moving at X,Y position. All good!

    Now, I use a button to "pause" and "resume" the sprite(ball).

    So, when i pause i use "Physics: Disabled"..

    ..and the problem is when i resume it, i enable the physics but the moving of the sprite(ball) stops from X direction and just follow down.

    What's wrong?

  • hmmm.. Ok, I will do some more tests. Thanks.

  • First of all thank you for your reply.

    The important here is to work well on mobiles too.

    Imagine you use a mobile and you are on portrait mode and you play.

    And you return your mobile at landscape mode..

    .. As you can see and from the result, will lose the object.

    I had this ("..if box is not on-screen, return it to the center of viewport..") on my mind, but i thought maybe there was a solution.

    Thanks!

  • Hello guys! I have a strange issue.

    I want to keep my object with physics inside layout without fall down or do any crazy things.

    Here is the screenshot:

    i.imgur.com/G0HIlxV.gif

    Anyone can help me? Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot!

  • 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!

  • 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!