Problem with spawning actor actor layers
Hello all,
The idea:
So I'm having a vendor in my game where the player can buy new items, which will instantly be visible after buying by spawning an actor before the hero (like a headpeace actor, which will spawn in front of the head of the actor).
The problem:
I want it so, that the buyable headpiece goes over the chestpiece (cause of a larger picture)
Problem is a part of the headpiece will dissapear UNDER the chestpiece, while i want it to OVERLAP the chestpiece.
I can't set the layer of the headpiece actor higher then the chestpiece actor because the 'buyable item actors' are not in the layers because they are not spawned yet.
Please help.
The idea:
So I'm having a vendor in my game where the player can buy new items, which will instantly be visible after buying by spawning an actor before the hero (like a headpeace actor, which will spawn in front of the head of the actor).
The problem:
I want it so, that the buyable headpiece goes over the chestpiece (cause of a larger picture)
Problem is a part of the headpiece will dissapear UNDER the chestpiece, while i want it to OVERLAP the chestpiece.
I can't set the layer of the headpiece actor higher then the chestpiece actor because the 'buyable item actors' are not in the layers because they are not spawned yet.
Please help.
Comments
http://www.deepblueapps.com/layer-selection-template/
Darren.
Check
Before the chest piece layer gets spawned:
http://img801.imageshack.us/img801/8572/7amp.png
After the chest piece layer gets spawned (you will notice the headpiece misses the lower piece of it's image, if you compare it to the screen above:
http://imageshack.us/photo/my-images/4/0ior.png/
See the problem?
Or you could have the chest piece include the red scarf so it doesn't look odd.
Darren.
@Mpaula620 that would be an idea, but how can I make an actor invisible?
and then you change self.position
self.position is an attribute
good luck!