Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
so i was making a game but i need help with the ai |
||||
|
help i need help with ai |
||||
|
I find a good AI is one of the most difficult and yet most rewarding things in making a game. It all depends on how complex you want it. If you want to add a lot of things then create a fixed state machine with different functions to run depending on the situation. See my Aliens Revenge game for more info if you like. I intend on adding to this code and making a proper small game from it one day. Already its very challenging and fun I think... All that requires good javascript knowledge however. Most are happy with some simple on distance do this type thingy though as lot easier. One of the behaviours has basic attack, move and so forth already in it but its quite simple. |
||||
|
idk how to code in java script |
||||
|
There are many posts on this forum about how to do that and also many older YouTube videos about that. CopperCube used an older ES5 version of JavaScript not ES6 or later so be mindful of that... Check the default API list also on the CopperCube website: see Tutorial & Docs / JavaScript scripting reference also... |
||||
|
thank you ![]() |
|