Ok so I would love to add npcs to my game what would be the easiest way to do so use x&y to do the movement or would I have to use a javascript library?
Btw I have been looking at this project:PlayCanvas 3D HTML5 Game Engine
but its really old It may have soome npcs
Lol you may not believe this but Ilooked at tht project the exact same day I made this post it lowkey made no sense
Well npcs are placed at fixed places, enemies have random movements untill the player enter a certain radius, then they chase him. You can check the this https://playcanvas.com/editor/code/352037/Shop.js altough there are some garbage lines left. Since it’s multilanguage the phrases are strings that change based on the chosen language.
Hmm thts alot of coding lol so is it like some kind of ai.Btw think you can show the project to this script
Uh project to the script? What u mean? I already gave u the link to the project
The link to the games project not the code editor
You can access the project using the code editor. Just go to the code editor tabs above and click, “Open Editor”.
Example:
Sadly the scripts are in legacy lol
With few adjustment will work, or u have to wait till i translate all to new scripts
I guess lol