We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
array problem (Read 257 times)
array problem
Feb 6th, 2008, 4:51am
 
Hi all.  I have a 2 dimensional array with "word" objects in them: word[type][location].  I am randomly picking words out and trying to manipulate them.  Some of the words on the screen are duplicate (from the same array location).  My problem is, when I try to move a word with a duplicate, they merge together...probably because they share the same x y  variable.  How would I resolve this?  I was thinking of making a copy of the duplicate object to another array...is that the correct approach?  Also, is it possible to copy a part of a 2 dimensional array to a 1 dimensional array?  

Thanks!      
Page Index Toggle Pages: 1