Item collecting problem

Hi all,
I have a game where you go around collecting keys, the problem is that when you collect just one key they all disappear when you reload. However when you don't collect any it remembers
this and they all remain when you reload.
The keys seem to be acting in a collectivist way even though they all have seperate names and
save/load keys.
Any Ideas?
I have a game where you go around collecting keys, the problem is that when you collect just one key they all disappear when you reload. However when you don't collect any it remembers
this and they all remain when you reload.
The keys seem to be acting in a collectivist way even though they all have seperate names and
save/load keys.
Any Ideas?
Comments
I would it do like that:
When collide with your object set attribute collect to collect +1, when you reload the scene change attribute collect back to 0.
In your key 1 just say, when attribute collect = 1 destroy,
attribute collect = 2, destroy key 2
and so on...
Hope that helps
true destroy this actor. So what I dont understand is why they all destroy on reload when I only
collect one or two keys.
going over the same area a few times and I don't want to be collecting lots of invisible keys.
Cheers
if they have been collected or not when I reload the game.
They are still acting in a collectivist manner and all disappear when any one is collected.
Help!
Make sure you do the same for all keys but create game.key2, game.key3 etc. and that you load them all.
Ace
It's probably me but this is all very confusing with having save/load keys and actual keys!
This is how my rules are set out, they are probably in the wrong order or something!
KEY 1
Rule1
when overlaps etc.
change att. game.key1 to true
save att. game.key1. key; image1
Rule2
when overlaps...
attribute self.self.active is true
change self.self.active to;false
Rule3
When all conditions valid;
attribute game.key1 is true
change attribute self.color to 0
otherwise
change attribute self.color to1
Does this make any sense?
Sorry about this.
1)I'm testing on ipod device
2)The load is on the first scene (menu)
Can anyone explain why when all the keys have separate names and load keys they would all
decide to go true when one is collected.
If I could understand why this might happen I might be able to find a solution.
Cheers