Hi all,new to Construct,and even newer to the forum,been bashing my head on a wall for three days,trying to work out,how to use an array,or any method really,to give me one of ten random objects,without duplicating the "pick".array seems most suited,and feel it is something "I need to know"
Now,I kinda get how arrays work,after reading up on them,and understand the check if "picked",repeat till ten process,but can't really grasp how,you manipulate that info into a usable,effect.
read loads of examples and loaded caps,but most are using system commands,that seem beyond me at the moment,as I want to understand what I am doing,rather than,copy-paste,somebodys example.purchased the Construct game development book by Daven Bigelow,few weeks ago,and arrays are barely mentioned,bit of a hurdle for my project as I can't focus until I get this beat.
I feel the array command is lacking flexability,somehow,as I can only seem to see the value at random x,or change the value,to something I dont want to change it to!,sure I'm missing something obvious to most.
so I am looking for a simple basic explanation,of how the array is used with the loop to give me a once only pick from ten.
Any help would be apprieciated,and apologies if this is covered elsewher,if so I missed it.thanks in advance.
PS using construct classic r2
As long as I can move left, right and fire, I'm Happy...