The Daily Click ::. Forums ::. Klik Coding Help ::. Array Question
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
3rd December, 2006 at 18:59:40 -

Im using mmf 2

ok, i have an array which is lets say 5x5, the 5x5 array represents an inventory system i have made with 5x5 slots. I would like to know if there is a way to make my prog check whether x1y1 has a number higher than 1 and if yes then i want it to check x2y1 an so on.

Is there a relitivly easy way of doing this with out my way which is coding each sqare seperatly, cause its ridiculas and overly time consuming.

Thx

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
3rd December, 2006 at 19:04:20 -

Use a fastloop of course!

Start a loop for the max x value, and on the loop do one for the max y.
Then compare the loopindex with the array square, and then check the whatever. It's pretty self explanatory.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
3rd December, 2006 at 22:21:30 -

thx alot ill try it, btw im more of a graphics guy, my coding stinks and i think im gonna have problems doing that!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click