playMaker

Author Topic: Instance changes all instances [SOLVED]  (Read 2085 times)

ninjapiraatti

  • Playmaker Newbie
  • *
  • Posts: 2
Instance changes all instances [SOLVED]
« on: May 10, 2013, 12:20:24 AM »
Hi!

I tried to find similar problems in the forum, didn't find anything quite like this. (Usually this means I'm just messing up something simple.) So. I have a prefab (bowl) that is instanced to the scene with create object command. Player can then fill the bowl with different foods and then drag & drop the bowl away. When dropped, a new bowl is instanced. Now, for some reason this new bowl has all the same variable values as the previous bowl! The changes made to the bowl don't affect the prefab as they shouldn't, but how can they affect the yet unborn new instance?
« Last Edit: May 10, 2013, 12:55:21 AM by ninjapiraatti »

ninjapiraatti

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Instance changes all instances
« Reply #1 on: May 10, 2013, 12:54:53 AM »
As usual the solution was logical. I wasn't instancing the new bowls from right place. The command to create new bowl was inside the first one so the new bowl copied its properties from that.