I found an example to make the player walk in front and backside of a tree, i hope it will work very well with my project. But my problem is i want to learn the code instead of just putting in my project. Anyone please help me.
Player is walking between the tree from bottom to top and also from top to bottom. If the player goes to the top after passing a tree the player will become behind that tree he is just passed
Question 1: If you can elaborate the code in detail it will be more helpful. Especially from the third line?
Question 2: Here what is the use of pick bottom instance to move the player behind the tree? Which bottom instance is picking with this condition nearest tree below the player or the last tree?
Question 3: After reaching the top when he return to bottom how he is becoming in front of the tree which he is passed.? I couldn't see any code for that.
drive.google.com/file/d/1el6CDfEcyUvgE5e1nmQS2WrjEiEvmptV/view