dop2000's Forum Posts

  • I tried a font with ligatures, and they don't work in Construct, at least for me..

  • You can't do this. CSS only works with Form Control objects (Button, Text Input etc.)

    You can use BBcode with Text objects.

  • Not sure what you mean.. If you set A=5 and B=20, then "For A to B" loop will only run from 5 to 20, no matter if you change these variables inside of the loop.

  • len(s) is evaluated only once when the loop starts. If the initial length of the string is 100, then the loop will only repeat to 100, even if the string length changes while the loop is running.

  • Because the string grows when you add spaces to it.

    If your string is 100 characters long, and you start from 3 to 100, by the time you reach 100th character, the string will be ~130 characters long. The loop will stop and the remaining portion of the string will not be processed. That's why I'm running the loop in reverse.

  • You put "physics" as tags to this post, that's why I assumed you are using this behavior. If you are using other behaviors (Platform, 8-direction etc.), the solution will be different.

  • Are you using Physics behavior for player movement? You can apply a force when player overlaps blood vessels. For example, you can add an instance variable CurrentDirection, and use "Apply Force 100 at angle BloodVessel.CurrentDirection"

  • Looks like "Player on collision with Ghost" will never pick more than one ghost. In my tests, when player collides with two ghost instances, the event itself is triggered twice.

    So, yes, seems like "For each" is not needed here.

    But if this event could potentially pick two ghosts, then "For each" would be required because of that "Else" block in event 46. Without "For each" loop, if player collides with 2 ghosts, one of which has escape=true, and another escape=false, only event 45 will be triggered.

  • If you are using C2, you need to post in C2 forum.

    Also, you should share your project file, or a screenshot of your code. Looks like your character is pushing enemies into the walls. I'm guessing you are using actions which ignore Solid behavior (for example "Move at angle").

  • Use len() expression - len(TextBox.text)

  • You do not have permission to view this post

  • You can use Tween with Linear easing function.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you already have a string of numbers and want to add spaces to it:

    .

  • Are you adding these digits to the string one by one?

    This code works for me:

    .

  • Your "Chars" layer is invisible.

    Also, you need to enable collisions on PlayerBox sprites.