hard20 pts · first answer countsgame-architecturepatternsecs
Handle points to a reused slot
Entities are stored in a pool, and AI keeps the index of its target. The target dies, the slot is reused by a new entity, and the AI now attacks the wrong one. What fixes this?
Discussion 0
Join free to post in the discussion.
Related questions
- Variable and fixed timestepsGame Developer
- Jump pressed just before landingGame Developer
- Jumping just after leaving a ledgeGame Developer
- Why games pool objectsGame Developer
- Decoupling achievements from combatGame Developer
- A flying, swimming, shooting enemyGame Developer
- Enemy with patrol, chase and attackGame Developer
- What to put in a save fileGame Developer