xeed's Forum Posts

  • Would you send the capx?

  • I had a similar problem before when "riding" on a solid object. Guess this happens on ascending slopes.

    You can try to give the moving object a security border for physics, that it always holds a margin of 1px to the ground. Another idea is, to use a physics velocity of Y too, like (57,-1).

    Tell me if it works for you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    is there any way to do this?

    Many thanks :)

  • i guess not, since you dont need to add walls etc anymore.

  • Currently working at a similar AI picking problem for collision prevention.

    Got the stage, that you need to store an ID of the family Instance to compare "Range" against.

    Hope this helps.

  • For me the Editor uses 250x250 as Default.

    By clicking the "Resize" button in the Menu you can change the base size as you like.

    Does this help?

  • Ok, now I see.

    You can try to remove the obstacles for the blue ant where the red ant walked ahead, instead of adding new objects.

    So this also fixes the problem blue cant walk while red does.

    Hope this helps.

  • yes, would you like to give me a screenshot of your event?

    I am not sure how you check the distance between all instances here.

    for each ordered by distance(X, Y, Object.X, Object.Y)

    just checks from the first instance, not all instances to each other.

    also only the first nearest instance is picked. If you leave the loop there, maximum 2 instances can do an action.

    many thanks for additional information!

  • Yes, currently the only way I see is to create a temporary Obstacle wherever needed, so only this one is accessed (and added) in the single action.

    Any other ideas still welcome!

  • Hi,

    I got it working with 2 instances, but for more i get stuck.

    The aim is, if X instances of an object are nearby EACH other these should all perform an action once, and switch back when they are out of the range to each other.

    Any help welcome :)

    PS: Guess I could make it if I would know how to override the loopindex inside a for-Loop, or a command like "nextLoop".

  • Could you show me an event sheet how you would set this up?

    It does not matter if I pick object(9) or object(21), the problem is I can only add ALL instances as obstacles IN THE ACTION, rather than a specific one.

  • Thanks.

    But I need it exactly the other way; I want to add one instance of an object to the one picked in the condition, such as

    object(9) -> "add Obstacle" object(21).

    In the action "Add Obstacle" I do not know how choose specific instances.

    Is there any way to do this?

  • Hi,

    could someone help me how to add an Obstacle like Object(UID) instead of all instances?

    Many thanks :)

  • This should do the job, many thanks :)

  • Hi,

    I wonder how to pick the nearest one of some Object Instances.

    The aim is to pick the closest Object to a target, but the choice should not be done of all instances, rather only between Objects with specific UID's

    Someone has an idea?

    :)