Help with arrays
Posted: Thu Sep 22, 2011 11:13 pm
hey
I'm having some trouble getting my head around arrays, I have 4 items my player collects. The items are all to restore hp to my player and each add different amounts of hp. At the moment I have separate actor variables all in player - draw actor - script
Item1=0; etc
I'm wondering if using an array would be more efficient as my game will have a lot of other items to collect and use that are related.
If somebody could advise and help how to set the array up that would be great.
Thanks
Irvaz
I'm having some trouble getting my head around arrays, I have 4 items my player collects. The items are all to restore hp to my player and each add different amounts of hp. At the moment I have separate actor variables all in player - draw actor - script
Item1=0; etc
I'm wondering if using an array would be more efficient as my game will have a lot of other items to collect and use that are related.
If somebody could advise and help how to set the array up that would be great.
Thanks
Irvaz