Hello GaniX,
I would advise you to train your skills ...:)
Beyond the joke, skills are very useful if you are willing to place several similar entities in the same level at the same time.
Like superku said , skills are not very difficult to use , once you understand what they are.
In fact, skills are like variables , but they are personal variables of the entity .
Each entity contains similar skills, but the value of the skills may be different.
For example you define a skill for health points of enemies.
So each enemy has health points, but their health points can be different : enemy1 has 100 health points ,enemy2 has 50 healthpoints, enemy3 has 85 health points, etc...
you define skills very simply by writing something like :
Then if the player hits any enemy , it says "remove enemy health" , with something like :
if(you == player)//the player has hit the enemy
{
my._health -= 20; //remove 20 hp from enemy's health
}
and since you defined _health as skill15, you can write the same this way :
if(you == player)//the player has hit the enemy
{
my.skill15-=20;//remove 20 hp from enemy's health
}
however i recommend you to keep using words like _health and not skill15 , because you will be able to understand your code better.
Skills are useful to manage personal variables of numerous entities .
Unlike variables that let you manage global datas that work for every entity if they use them.