Question by
bat_hol · Jun 08, 2020 at 11:18 AM ·
pathfindingcontextmenu
Instanciated class in contextMenu destroyed on play
Hi ! I'm a student in game dev and as i'm starting to feel confident enought to test new things i tried to make an A* pathfinding.
But the probleme is that to prevent lost of perfomance with a lot of nodes i made a methode that i can run in context menu to Pre-fill my grid of nodes and that Grid and all the instanciated nodes are destroyed as soon as i click on the play button.
is there something i'm doing bad ?
here are my node class and pathfinder class
screenshot-54.png
(42.3 kB)
screenshot-53.png
(39.8 kB)
Comment
Your answer
Follow this Question
Related Questions
Clear path from A to B 4 Answers
Best Way To Setup a Waypoint-based Patrol System? 0 Answers
Pathfinding via roads 1 Answer
Enemy can't move follow the path, A* algorithm for my game 0 Answers
Node Based AI,Node Based AI System? 0 Answers