Where all objects collisionen each other, with artificial intelligence, the idea is to create a battlefield where I have 6 players, one is controlled by the user, the rest is handled by the cpu, someone can help me with a tutorial or something thank you very much
class Actor {
function MoveTo() { /* … */ }
function Attack() {}
}
class AI {
private var actor;
function Start() { actor = GetComponent(Actor); }
function Update() {
/* call MoveTo and Attack as necessary... */
}
}
class Player {
private var actor;
function Start() { actor = GetComponent(Actor); }
function Update() {
/* call MoveTo and Attack as necessary, but use Input. */
}
}