Answer by Bunny83
Sure, don't use an array at all. It makes no sense in this case. Just use a single integer variable to specify which statement you want to execute: int selection = 0; // [...] if (selected == 0) { //...
View ArticleAnswer by Owen Reynolds
Since you write it's for a real school course, you may as change the if into a lookup (too confusing for many programmer/artists, but in school you'll learn it anyway): public Color[] EnemyCols; // set...
View ArticleAnswer by Bunny83
Sure, don't use an array at all. It makes no sense in this case. Just use a single integer variable to specify which statement you want to execute: int selection = 0; // [...] if (selected == 0) { //...
View ArticleAnswer by Owen-Reynolds
Since you write it's for a real school course, you may as change the if into a lookup (too confusing for many programmer/artists, but in school you'll learn it anyway): public Color[] EnemyCols; // set...
View Article
More Pages to Explore .....