Hey folks,
Was wondering if there is a way to invoke python scripts from java for simple AI scripting? I’m not planning on doing any sophisticated AI, just simple stuff.I would like to do it in python to cut down on code.
I want to do something along these lines:
//java code ...
entity.tick(){
//invoke python script...
//python script updates entity variables...
}
for (Entity e : entities){
e.tick();
}
I something like this possible, where I can update java class variables from a python script? Or maybe there is another scripting alternative that can accomplish this? Any tips or links to tutorial resources appreciated!