Openbor Fighter

Xander Silva

New member
Friends, how can I make an Openbor Script to make the player and enemy always face to face like in Mugen. I still haven't gotten any results...
 
You'd need to limit the number of fighters (players and enemies) in a game. After you set that, you can set which entity should always face which other entity with script.
 
Yes friend, I already defined a phase as having only the player and an enemy fighting each other. For example, the game "WWF Arcade Game" has the freedom to move around the scene but the characters only face each other. I tried to make a script but nothing happened, maybe I put it in the wrong place or I don't know how to allocate it...

void main(){
void self = getlocalvar("self");
void Pindex = getentityproperty(self, "playerindex");
void Players = getplayerproperty(Pindex, "entity");
int Faceentity = getentityproperty(self, "facing");
int Pface = getentityproperty(Players, "facing");

if(Pface==1){
changeentityproperty(self, "facing", 2);
changeentityproperty(Players, "facing", 1);
}

if(Pface==2){
changeentityproperty(self, "facing", 1);
changeentityproperty(Players, "facing", 2);
}
}
Video example:
 
Last edited:
Back
Top Bottom