Forcing a none type object to remain behind the player?

Status
Not open for further replies.

DatKofGuy

Active member
Hey guys, Im busy making a elevator level and I hit a bit of a snag.
BkImqwm.png


As you can see in the pic, the gears and platform are always shown in front of the player, it is a none type and just has the idle animation of the gears spinning.
Is there a way to make sure its always behind the player?
Or is there a way to make animated background panels?
 
Hi, you need to change the player's spawn (lower his y coord) and this mechanic will be automatically on the back. If you have more difficulties, you can use setlayer function
(determine the layer 0, 1, 2... of the level).
 
Hmm... I'll have to do some math now.
Coz I spawn the gears at 240 272, since the image size is 480 272

And I spawn Terry at 165 235

So I'm guessing I should just change the gears offset?
 
use set layer in the gears and platform entity header like this



Code:
setlayer {int}

~This entity will be displayed as if it were at z position {int}, regardless of it's actual position.
 
danno said:
use set layer in the gears and platform entity header like this



Code:
setlayer {int}

~This entity will be displayed as if it were at z position {int}, regardless of it's actual position.

OK, and how do I know what value to give it? Or is it trial and error?

It worked, thanks!
XaHRMd5.png
 
Status
Not open for further replies.
Back
Top Bottom