Can a "Player" slide under a floor object? - Platform Game

Hello All,

Can a “Player” slide under a floor object in a platform game? And if so, how could I make this happen?

Thanks.

You need to change the Z order of the player or the floor object.
If you want it to be permanent and from the beginning of the scene, select the player or the floor in the editor and on the left change the value of the Z order. The ones with the lower Z value are always drawn below the ones with the higher Z value.

In case you want it to be temporary, you can use events to change the Z order of any object.
Alternatively, you can also use layers and move objects to different layers.

A quick alteration which may do what you want is to set the platform type to “Jumpthru”, then your player will be able to pass through the platform in all directions except from the top/above.

You will still need to adjust the Z order like ddabrahim said, so that the player either goes behind or in front of the platform.

Thanks guys!

Inorder to do the slide I needed to have the “Player” collide with a object I must hide inorder to get him to do the trick. Thanks for the z order info. That helped in other places within my game.