While I was playing with BGT a little, and wanted to implement something, I've realised that I have no idea how to do it.
To be honest, I have more ideas of ways to implement what I want, but I'm not sure at all what to do... I'll explain bellow what I'm doing.
So, I've created a menu with several characters where you can choose from.
If you choose a character, the string character will get a particular name, and depending on what character you have chosen, it will perform different actions, if you press A, S, or D keys on the keyboard.
Because each character has different skills and techniques, I made a function which is checking what character you have, as a result, each character will perform his specific action.
The problem is that I know how to make it work if I'm using just one key, and each character has just one skill.
But, what to do if each character is having 3 assigned key, so in short, 3 uniques skills?
I'll let you know what I made so far below.
As you can see, I put in the code only one technique, but my character has 3 skills by pressing A, S, D, and I have 3 or 4 different characters with their own skills.
How to make the program to check it properly in the easiest way properly?
Should I use classes, or what metod would you recommend?
If it would have be using just one skill for each character, so, just one key, it would be really easy.
But now, with multiple characters and each one having 3 different skills, I really don't know how to make the script to check the character when I'm pressing the above mentioned keys.
Sorry that the post is the long, but I wanted to explain it as detailed as I call, although I'm sure it will need more explaination later.
Hope to get some info about this issue.
Thanks in advance.