# Multiple Instances of one class

**URL:** <https://forum.kirupa.com/t/multiple-instances-of-one-class/329470>\
**Category:** Uncategorized\
**Created:** [September 3, 2012, 4:24am UTC](https://forum.kirupa.com/t/multiple-instances-of-one-class/329470 "2012-09-03T04:24:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ragnoroct](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@Ragnoroct](https://forum.kirupa.com/u/Ragnoroct)\
**Post date:** [September 3, 2012, 4:24am UTC](https://forum.kirupa.com/t/multiple-instances-of-one-class/329470/1 "2012-09-03T04:24:31Z")

</div>

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.
