Ramez1's Forum Posts

  • I am creating a pathfinding behavior for a tower defense game, which is not efficient, buggy and lags like hell because the map is continuously updating. So I am having the idea that one of the monsters calculate the paths using the pathfinding behavior and other monsters follow him.

    Is that idea even valid, and if yes, how can I save a monster path to let other monsters follow it.

  • I am using pathfinding behavior in tower defense game whenever I add a blocking object such as wall, the monster rotate around itself, sometimes just move in their place and doesn't move.

    In the link is the code for the pathfinding that I am doing, if you notice anything wrong or not efficient, please post anything may help

    code:

    drive.google.com/open ... EpWYVUtVjA

    NB. In the third image what I am trying to do is when monsters fail to find path destroy the last wall, also what I am trying to do is when I add wall Regenerate pathfinding map.

  • I am creating a tower defense game where when I place a wall the enemy monsters recalculate the path.

    The problem is that pathfinding behavior act very weird, the monsters rotate around them-self or move around. When they rotate or move around, they can collide with wall causing them to stand still.

    The code

    drive.google.com/open ... klFT3BiQ3M

    if anyone has any idea how to make the pathfinding behavior work, please answer

  • wizdigitech didn't get it, please check the code

    drive.google.com/open ... WZPZVo2Y0U

  • I am doing time delay, using wait but it is not working at all

    Code:

    drive.google.com/open

    the thing is that when I view it in the debug mode the transition variable change from 1 to 0 quickly without waiting 30 sec

  • Thank you so much, it worked

  • I have event that needs to be triggered only if it is true for 2 seconds. How can I implement it.

  • I have a monster that has a pathfinding behavior. I want once I add a wall that block the way, and pathfinding behavior can't find path, destroy the wall.

    Any help would be highly appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • LittleStain Thank you so much, helped a lot

  • oh sorry here is the link "https://drive.google.com/open?id=0B1pGW-xaP8VfN3p6cUpFY2RzdE0"

  • LittleStain I tried the ajax option but the problem is that the project snap

    can you check the screenshot to see if I am using the ajax correctly

    "https://drive.google.com/drive/folders/0B1pGW-xaP8VfMXVpRWZPZVo2Y0U"

  • I want to import a csv file that I created to be used in the plugin CSVTOARRAY, this file is currently in the Files folder in my project.

  • LittleStain I did that and it didn't work, it is still running forever even if monsters find paths

    NB in my code I spawn monster every second

    check screenshot of the code

    "https://drive.google.com/open?id=0B1pGW-xaP8VfM1hNZTFEeTgzd0U"

  • I have Monsters that are using pathfinding behavior. I want to destroy object when monsters can't find any path.

    I know which object to destroy, but the thing is that pathfinding "failed to find path" condition runs forever, so even if monster find path it destroy the object.

    Any idea for how to fix it or any other approach

  • Hello,

    I am trying to create a 4 direction animation for turret, with turret behavior. I know I should check the angle and decide which animation it should run based on it. The problem is that because I am setting rotation of the turret to "Yes" the turret rotate in weird way and switch frame after rotation. I guess I should set rotation to "NO" but this way it will not change its angle.

    The turret should fire in all angles, how is that possible.

    Screenshots of the code and the rotation are found in this link.

    "https://drive.google.com/open?id=0B1pGW-xaP8VfM1hNZTFEeTgzd0U"

    Any help will be really appreciated.