Log In  

Hi everyone,

Hope you can help. I'm searching, but can't seem to find a solid answer.

I'm trying to find a way to create that ability to walk behind a tree, and in front of a tree, depending on which way you approach it. Does that make sense? Basically, the tree would be displayed in front of the player if they were going down to the tree. Whereas the player would appear in front of the tree if they walked upwards towards it.

I think maybe I have to render the screen in two sections? The stuff above the players x/y position, then the player, then everything below it? But this sounds jolly confusing!

Does anyone have any experience with this? I'd love to get a better moving around situation then I have at the moment where it's really clunky and just stopping dead against any 8x8 object!!!

Help!!

P#115927 2022-08-17 07:25

have a look at the layer parameters for the ‘map’ function.
looks like exactly what you are looking for.

P#115929 2022-08-17 08:06

Thanks freds72, but I don't see how this help.

If a tree has a flag set on it, how do I show whether it should be in front or behind the player, based on the direction they approached the tree?

Sorry mate, you're dealing with an idiot here !

P#115931 2022-08-17 08:40 ( Edited 2022-08-17 08:40)

@WideArchShark take a look around these 2 threads.. they might give you some inspiration.

https://www.lexaloffle.com/bbs/?tid=39014

https://www.lexaloffle.com/bbs/?tid=39404

P#115933 2022-08-17 09:02

That second one is exactly what I'm after, thank you !

P#115934 2022-08-17 09:06

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 04:08:43 | 0.027s | Q:16