Change Actor's Z Position?
I am making a game where you pick something up and put it somewhere else. When i pick up an actor, i want them to sort in front of things so they don't get lost when you place them where they need to go. Right now they are somewhat hidden and occluded by objects until you pick them up, and that is part of the game.
Does anyone have any ideas on this? Can you change Z position? Or the layer on which the actor currently presides?
Does anyone have any ideas on this? Can you change Z position? Or the layer on which the actor currently presides?
Comments
What I'd do is set up your own set of rules that dictate what gets placed in front of what.
But then, I'm not sure how you'd show that.
Hmmmm....
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
edit: i misunderstood. If your talking about ingame then refer to qs's post above
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
What I would try to do it make a duplicate of whatever your actor you're dragging, set it's alpha to 0, and constrain its X and Y positions to the original actor.
Then you can change that top actors alpha to 0 or 1 whenever it's needed, to make it seem like its going to the "top" or "bottom" layer.
Not sure if that answered your question or was any help at all, but just throwing out ideas here.
What i did was have 2 hero actors and swap them depending on his Y position in relation to objects like trees and fences so the hero can walk in front and behind.
The effect is probably the best solution to layers atm.
I would not recommend lots of spawning.
See video below.
Darren.