Can anyone help me implement an entity in Construct 2 with the following behavior?
1. Patrolling random items
- The entity should randomly choose an item scattered around the map to patrol.
- It should move to the item and patrol around it for a random time (between 20-50 seconds).
2. Following the player:
- If the player enters the entity's field of view or radius, the entity should start following the player.
- The entity should stop following the player when they leave the field of view or radius.
3. Item switching:
- After the patrol time is over, the entity should pick another random item on the map and start patrolling it.
- This process of choosing and patrolling should repeat indefinitely.
Additional Notes:
- The player needs to collect the items, which get destroyed upon being touched. Therefore, the entity should avoid following items that have already been collected.
- The same item sprite appears throughout the entire map.
- The game is top-down.
I've tried to do this on my own, but the entity barely moves, and I'm getting stuck. Any tips or examples on how to achieve this in Construct 2?