Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Just on February 04, 2019, 10:57:18 AM

Title: Platform layer woes [SOLVED]
Post by: Just on February 04, 2019, 10:57:18 AM
So I have some platforms here:
(https://public.boxcloud.com/api/2.0/internal_files/396325300563/versions/418994244963/representations/jpg_paged_2048x2048/content/1.jpg?access_token=1!CH9fMg0IUoB1NZm2CiwKy7ATNb_RcU-F6Xwai7xSPR6nTClLSMOGzHmySdCFFfh8WyGARQsVua66QO1X0nr_rEMyz5842azV5hE2yuUuF7yGIPgJWpw3bwbwk9FG8P1_j-DvYhJ-25DGCS7zu0RCx7MlqJi2x9yLkuPtIXLOSjGWKVt2QpLRgxcj3KaS6uVk6Z5TiFwGttvTeePi-oDFl6zS1UJVNVHLJa32BAJ2iwCcvyqLY_x8R8x5nIjjbMVR2QXiHX-A_5oaL2eQmBN98x7-sTDNEq84DhHdXwla2w1KNnVqZOg2vDI8-gAdb26IjYezDtBBipS9co1D_DWYOPTLzSKxVEa3w6FevnTWRbw_O8ELW2DbKReMxZFVmLIH8tVp6dh7omGuMkHzpLagHgrZewaWnYgvdG6RrYAmKrRZmPNeIxN0sOGI-PXsgC6J9TqO6fJ_G1RpUtSPp7TUdX92BUDNWRcsJGvOFTXlHQQwUpmpgAyRp9GZXNYDkFl7HWCy4aZnd691A8GAJa0sNSmvVSgEszC5qvQSAzbtgAiAAKHD9b0vy38lh3_c7A..&box_client_name=box-content-preview&box_client_version=1.61.0)

You can move behind them like this:
(https://public.boxcloud.com/api/2.0/internal_files/396286627366/versions/418953910966/representations/jpg_paged_2048x2048/content/1.jpg?access_token=1!AeGfIhSX2Q-fpZ73mPrY-endWMBs1mJ-zgeW46cUg_qh-OOqyXOcFAjiaq3dLqaHYercax3a12sgOD3gj2ygV5Nbz8t9bQQJQV6ZD3i4Qk9PqePtMEgTSbxP27H287snWj_xFPCQIlevYU9NN7QIFD8Fgyoor5DnEwRcil-wRhBb1pOViCIKqnl2YJ5yR2xuFeg8MeF-voP-hib0vNX2Drfwr3LMe9vS40lhGfV3W4gxVe7AGAJBcb2CQoTdMR4p4RsQm_uczt3JQwo2JuwGvo3qPMY9Q-3u6r-lI4nD08lzaRQYT1pmbMs9pJgRps5PRHK0kCdI2E8hXUmk1A5h8uo0sj59CpneNt2OVKQpbP388LsRlohIOmuiFZZYBkIsxkQ34aZEML7_NkHeA_OKSv-reIfHaTUM3gkS2SWMGuBRtzEhHLAG1JjCVzPdUnC5j2InmUKvW2k1J9aZFfxaB5OjEwxHVj_uizbas3BviBCmrfhol5IAHqGVfD2sSOf5n8ELZmIDdPDMZ6c18PvGahEAymnGLrB5QW0F9tKd1duV1RUNiBzOcvYqNTLjeQ..&box_client_name=box-content-preview&box_client_version=1.61.0)

Problem is just that adjusting raycast to make layer change for each platform correctly is a lot of work, and it's currently not working without flaws. I have been thinking to slice platform into two bits so I could avoid this problem, do you guys have any other/better solution with this?
Title: Re: Platform layer woes
Post by: djaydino on February 04, 2019, 02:27:16 PM
Hi.
Maybe cut the sprite in 2 (lower grass part and below + path and above)
for each platform.

Then set a higher layer for the lower parts 
and a lower layer for the path and above.
Title: Re: Platform layer woes
Post by: Just on February 05, 2019, 08:30:13 AM
Thanks, I think I'll do just that.
Title: Re: Platform layer woes [SOLVED]
Post by: djaydino on February 06, 2019, 12:17:54 AM
Hi,
Let us know if it worked :)
Title: Re: Platform layer woes [SOLVED]
Post by: Just on February 13, 2019, 09:57:56 AM
Hello, sorry for late answer. Yes, that was simple and easy solution. I didn't even had to replace any existing platforms, just had to put cut part of platform as different layer to correct place and it's perfect : )