Layer sorting the player?
by jydog · in TGB Platformer Kit · 04/04/2008 (11:14 pm) · 6 replies
I'm trying to get the player to sort by layer. Such as he will run in front of some bushes and behind others.
He's in front of everything right now.
Randy
He's in front of everything right now.
Randy
#2
I will build up a small new level to test.
Thanks.
04/06/2008 (10:02 am)
I have. In your picture I see it worked for you. That is what I expected and that works for everything else except him. I will build up a small new level to test.
Thanks.
#3
Add the following 3 behaviors:
"Actor Behavior"
"Actor Animation Behavior"
"Player Controller"
in the first part of the tutorial.
But when I use the "Spawn Point" it does not sort.
What do I need to do?
04/06/2008 (11:04 am)
The Dragon will sort properly when I use the:Add the following 3 behaviors:
"Actor Behavior"
"Actor Animation Behavior"
"Player Controller"
in the first part of the tutorial.
But when I use the "Spawn Point" it does not sort.
What do I need to do?
#4
04/06/2008 (11:39 am)
You need to change the layer in DragonTemplate datablock. Changing SpawnPoint's layer has no effect on spawned objects.
#5
04/06/2008 (12:39 pm)
Ooohhhhh.... then he must be layer 1 then.
#6
Changed him to my level and he works just fine now.
(The drill is level 2)
Thanks.
04/06/2008 (12:56 pm)
Yes. Went into data/gamescripts/datablock.cs and he is "hardwired" to level 1. Changed him to my level and he works just fine now.
(The drill is level 2)
Thanks.
Torque Owner Stephen Howe
OR... put them all on the same layer & move some bush's to the front & some to the back.