I cannot find anything regrading a pathfinder in playcanvas… So i came to the forums instead
So, I’m making a tower defense game (as a project for school) and I decided to use PC for it, as it seemed suitable for what I’m doing, and I am mildly familar with JS, and can learn it rather quickly and complete the game before early 2019.
I have an example just to find out code for how I will spawn enemies, and I need pathfinding help.
Say:
enemy spawns at entity A
enemy needs to pathfind to entity B
then to C
D, E, F…
hit a teleporter, to another teleporter
pathfind to G, H, I etc…
teleporter again, then exit the screen as a “life lost”
I know, may sound confusing just reading it, but theres no better way to explain it really. So I’ll just ask for if I spawn a “box entity” on top of entity “A”, then I need this to pathfind itself to entity “B”. The rest I can figure out I would assume.
However, if you understood what I said above about all pathfinding, teleporters and any sort of code for spawning enemies and having them walk around the level, feel free to explain it to me, so I can take it with my own understanding
I also need ideas for towers, however this will come much later, as I want a basic version first (1 tower, 1 wave, 5 enemies, bang). Then build off of that… (I’ll come back to this eventually)
Thanks for any replies in advance!