R
Rosepike
Guest
Hello, I'm currently working on a university project and have been advised to use variables to achieve the goals I want for my project.
However, the problem is that I don't know how to set them up or how to work them.
For my game, I want my character to possess certain abilities when he attacks an enemy with a special attack.
When he does this, I want the character to change sprite into the enemy where he will then gain abilities from the enemy.
Up to now I have done the following;
global.Meele= 0;
global.double_jump= 0;
global.scientist= 0;
global.Electricity: 0;
How do I set what happens to each variable when they are true?
I hope this makes sense. I am new to the software so I apologize if none of this makes sense.
Thank you
However, the problem is that I don't know how to set them up or how to work them.
For my game, I want my character to possess certain abilities when he attacks an enemy with a special attack.
When he does this, I want the character to change sprite into the enemy where he will then gain abilities from the enemy.
Up to now I have done the following;
global.Meele= 0;
global.double_jump= 0;
global.scientist= 0;
global.Electricity: 0;
How do I set what happens to each variable when they are true?
I hope this makes sense. I am new to the software so I apologize if none of this makes sense.
Thank you