Walk on uneven platform?

Get help using Construct 2

Post » Wed Jan 17, 2018 6:34 pm

Hi, friends,

I cannot find any solution for my situation. Here is my game:

(Click enter). I have Mr. Twig here and I want him to walk on that black hill, which is not straight.
I don't need him to jump, just walk right or left on that side, where I click with my mouse.
And I want his steps to copy the surface.

Is there any solution for that at all? Or it's just not possible with Construct 2?

Thank you, guys, a lot for your answers, I'm newbie here!
Last edited by eca315 on Thu Jan 18, 2018 10:15 am, edited 1 time in total.
Posts: 2
Reputation: 179

Post » Thu Jan 18, 2018 2:58 am

You can add Platform behavior to your character, Platform can walk on uneven surface.
But if you try to make collision polygon on your ground to copy all those little bumps and drops, the collision polygon will be too complex and could affect performance.

So one way to do this is to build the surface with simple invisible sprites, roughly replicating the terrain. Your character will actually be walking on these sprites, but it will look like it's walking on the ground.

Another option is to use an invisible tilemap, but it's quite advanced. See this post:

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
Posts: 2,384
Reputation: 84,395

Post » Thu Jan 18, 2018 3:13 pm

Thank you, DOP!

I've tried both (collision points & invisible sprites) and it works fine.
I have 32 points and I see no performance affect...

Thanks a lot!
Posts: 2
Reputation: 179

Return to How do I....?

Who is online

Users browsing this forum: DarthPapalo666 and 9 guests