K, here’s my problem. I have one class called Vehicle I get it to move by making a path array and having it follow that path. The thing is, when I create more than one instance of that class, those instances all share each others variables(meaning same path array values). So only on of the instances moves the way I want it to while the others stand still. Help? I want it so that each instance has it’s own path array that can get updated so each one follows their own path. Thanks.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Multiple instances of class | 0 | 105 | June 11, 2009 | |
Private component variables share across instances | 0 | 60 | August 14, 2006 | |
OOP - Problem with an array
|
0 | 68 | October 21, 2004 | |
OOP - Problem with an array
|
0 | 135 | October 21, 2004 | |
1 Instance works, 2 doesn't | 0 | 69 | June 25, 2007 |