Skip to content

Add "Distance between positions" and "Distance between object and position" condition  #3815

Open
@tristanbob

Description

@tristanbob

Description

Users may want to check the distance between two positions or between an object and a position. This can currently be done by using the "Compare two numbers" condition and using the "DistanceBetweenPositions()" and "Object.DistanceToPosition()" expressions.

It's important for "Distance between object and position" to be a condition because the "Compare two numbers" condition does not perform object picking.

These tasks would be easier if these new conditions were provided by GDevelop.

Solution suggested

  • Create a new "Distance between positions" condition that works similar to the existing condition "Distance between objects"
  • Create a new "Distance between object and position" condition that performs object picking

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions