In my program, I'd like to have variables that contain the "stats" for a few different things in my program.
At the moment I would use
but that would be annoying to access through the rest of my codeActionscript Code:var enemy1Health = 100;
var enemy1Speed = 5;
var enemy2Health = 150;
var enemy2Speed = 3;
I'm not too knowledgeable of data types, so what type of variable should I use to store all the data in one variable, instead of having lots of seperate integer variables.