dop2000's Forum Posts

    • Post link icon

    made the event and log but what am I suppose to enter for the message?

    Whatever you want. For example, Log "Adventurer "&Adventurer.UID&" FIND PATH"

    Then open browser console in preview and watch for this message.

    .

    The problem is Turret behavior, it somehow prevents Pathfinding from moving. I'm guessing it tries to change the angle.. If you disable Turret immediately after "Find path", then the adventurer moves correctly. Try using a different sprite for turret behavior, pinned to the Adventurer sprite.

    Also, using Solid on the same Adventurer sprite can cause problems, don't do this. Same with adding Adventurer sprite to obstacles.. If you want to prevent multiple adventurers from bumping into each other, this is not the right way to do it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Post link icon

    Make sure that your "Find path" action is only triggered once, and not on every tick. You can add "Browser -> Log" debug message, then in preview press F12 and open browser console, you should see this message appear once.

    Maybe there is something else preventing the Adventurer from moving. Does it have any other movement behaviors, like MoveTo, Physics etc.? Check if pathfinding speed is set in behavior properties.

    If nothing helps, please share your project file, as I don't see any problems on your screenshots.

  • You can try selecting/deselecting "Auto font size" property, or increasing the font size with CSS.

    But I don't like using TextInput in games, it's easy to make your own text input which will work better, will scale correctly, will not steal focus etc. See these links:

    construct.net/en/tutorials/your-own-textbox-459

    howtoconstructdemos.com/old-terminal-style-text-input-with-blinking-cursor-capx

  • Use Wrap behavior.

  • If the issue is just with the center of mass, you need to use a symmetrical collision polygon, or set Collision Mask=Bounding Box in Physics properties. If your ship sprite has a complex shape, maybe use a different invisible object as a ship body instead, and pin the visible sprite to it.

    I have an old demo, maybe it can help:

    dropbox.com/s/9rjbrl0wpc1zzsv/SpaceVaisseau2.capx

  • You can use Browser -> Invoke Download of string

  • Yes, if you select another object in "Object" field, it will spawns instances of this object as particles. Pretty cool feature.

  • JSON.ToBeautifiedString

    JSON.ToCompactString

  • You can spawn sprites with Particles object, this allows to randomize each particle shape, color, rotation etc. You can also detect when individual particles collides with an enemy. See this demo:

    dropbox.com/s/n0ljyz6gt6grygb/Confetti.c3p

    But if you want them to bounce off walls, you'll need to use Bullet as Brunopalermo suggested, or Physics.

  • Easy - use "Is overlapping at offset". If player is overlapping the ceiling at offset y=-4 for example, don't allow it to stand up.

  • That's why I mostly use "On touch start" or "On object touched", controls are much more responsive this way.

    I only use "On tap" with important buttons where I need to be sure that user specifically tapped it, and it was not an accidental touch.

  • cybertron7 Could you elaborate? Text object, or TextInput object? Where was it - on the loader layout or on your first layout?

  • Well, you are setting plane position to touch position, of course it immediately teleports there. If you want to move it slowly, the easiest option is to use MoveTo behavior. You can configure its speed and acceleration/deceleration.

    Also, I don't understand why you are comparing touch speed. It's only useful for swipes.

    So all you need is a simple event like this:

    Is in touch -> Plane MoveTo Touch.x, Touch.y

  • If you need to position the camera there, the easiest way to do it is with lerp:

    Camera set x to lerp(Obj1.x, Obj2.x, 0.5)

    Camera set y to lerp(Obj1.y, Obj2.y, 0.5)

    With more than 2 objects it's trickier. You can use the method in this demo, position the camera in the center of green rectangle.

    howtoconstructdemos.com/draw-a-bounding-rectangle-or-a-perimeter-around-multiple-objects-capx

  • Hey, thanks! I'm a cappuccino guy :)