p.s right you cant make a two player game in game editor cause that is not what im trying to do.

angle=direction( ennemy player.x, ennemyplayer.y, yourplayer.x, yourplayer.y)+180;\\opposite angle from the striking
directional_velocity=(ennemyhealth/10)+4;\\making him fly depending the percent(this is for the percentage that gos from 0 to 100%, you shouuld do that!)
int striking;
striking=1;
ennemyhealth+=9+rand(6);\\ increasing the damage ratio
if(striking)
{
directional_velocity*=0.06;
}
if(striking)
{
angle+=180;\\to make a richochet effect
}
else
{
physicalrespond action here*\\the physical respond if only standing, moving...
}
textNumber=ennemyhealth;\\making the text the same as the ennemy health
ennemyhealth=0;\\changing var at start of battle
if(striking)
{
changepath(your path);
}
Users browsing this forum: No registered users and 1 guest