Problem with spawning actor actor layers
BasGoodboy
Member, PRO Posts: 310
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.
Goodboi Gamestudios | Monster Jumper now on the App Store
Comments
http://www.deepblueapps.com/layer-selection-template/
Darren.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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?
Goodboi Gamestudios | Monster Jumper now on the App Store
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?
Goodboi Gamestudios | Monster Jumper now on the App Store
Goodboi Gamestudios | Monster Jumper now on the App Store
Goodboi Gamestudios | Monster Jumper now on the App Store
Goodboi Gamestudios | Monster Jumper now on the App Store
Goodboi Gamestudios | Monster Jumper now on the App Store
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Goodboi Gamestudios | Monster Jumper now on the App Store
and then you change self.position
self.position is an attribute
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Goodboi Gamestudios | Monster Jumper now on the App Store
good luck!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮