igortyhon's Forum Posts

  • When you remove or add obstacles to the map, you must perform a “Regenerate” action for the entire map or individual sections.

    There are many good examples of this behavior in C3 and it is well described in the help.

  • There is a sprite with pathfinding behavior that is visible in the video and there is a house sprite (with solid behavior). The other things that are visible are on different layers.

    I look at your video and the collision grid of the house and I see that the character is as close to the house as possible (screenshot), he can not get closer he is prevented by the sprite of the house.

    But your house has a strange sprite, I would do a mask coliziya just on the object without grass around.(orange on the screen).

    And more when the character runs behind the house you can show his animation solid fill (red on the screen) that the player saw what the character does.

  • I thought this forum was active

    This forum is actively read, but not all questions have the right information to give an answer.

    For example, in your question, besides the settings of the path search itself, it would be good to check all collision masks and objects that are on the path, but you can't do it just from a piece of video. The best way is to attach the source with a piece of problematic code, graphics and all unnecessary things can be removed.

  • Hi.

    Why don't you string the code under events, you put everything in one pile? It is not readable by people and causes disputable situations in the program.

    Where the trigger “map creation” is triggered, the engine already understands that this particular map instance has been selected and is ready to work with it, so it is better to start events only for this map. If you want to process all map instances on the sheet in this event, you'd better move it to a function. And already in the function body list all the cards and set their size and position.

  • You've already written two posts about strange audio behavior, but it doesn't help us to understand what's wrong.

    We need either a screenshot of the events or a source with the problem.

    Have you looked in debugger to see if the audio is launched once?

  • Look at the physics examples. Especially these two they have touch and similar mechanics.

    editor.construct.net

    editor.construct.net

  • After you press f12 in chrome should open the debugger, then use this key combination

    ctrl+shift+M

  • Yes, and where you stop a dead creature, you can add an animation check to the check condition, and if the animation is not the “death” animation playing now, only then turn on the “death” animation.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm making an evolution simulator. There's little critters that use pathfinding to find food and water. Sometimes, they walk infinitely into the corner of the map.

    Hi.

    I think you need to go through all the creatures. And you can do it less often, not every tick.

    Try this.

  • dop2000

    But in order to get good figures for both methods “int” and “floor” we have slightly extended the range of generation to get the right sample, if we do the same for “round”, this method also shows itself well.

    Here is an example.

    fex.net/en/s/c2tlmek

  • dop2000

    I agree the “int” method works better, by the way the “floor” method also works well.

  • round(random(0,5))

    Hi.

    It's better to round up, so the distribution will be more even, in fact they will replace the

    choose(0,1,2,3,4,5) = round(random(0,5))

    but good random is an ancient halivar.

  • Hi, just tested this build option, everything came up fine.

    -Google Chrome

    ver 133.0.6943.142

  • Hi everyone!

    I have just published my first game construct.net/en/free-online-games/starheist-72317/play

    Will be adding more levels in the future, would love some feedback!

    Hi.

    For a first game, very good.

    I'm no expert in platformers, so I'll tell you what I noticed visually and technically.

    -Hero I like, but he when he runs from behind appears artifact, indent more transparent space on the edges of the sprite of running.

    -Spike are drawn well, but try how it will be with a stroke and a small shadow under them.

    -Trampoline is good, but not enough shadow under it and it is small.

    Everything else-stars, portal, walls, buttons and background I would redraw.

    This is just my opinion.

  • WackyToaster Thanks for your advice, I agree. Even more I will say in all my games I have a problem with music, but it's not because I'm greedy, I just don't know how to choose it.

    Maybe the day will come when I will find someone who will help me with music in my games.