How do I fix my angle detection movement?

0 favourites
  • 2 posts
From the Asset Store
Detects any kind of ad blocker. Very easy implementation into already existing projects
  • Hello

    I want to make my character change its angle properly on slopes.

    While searching the forum, I found a good and easy example to do it but it doesn't work properly - the detectors doesn't work at certain angles for some reason, i couldn't find why.

    I've used the built in platform movement for this example to make it as easy as possible.

    Can you tell me how to fix it? I want to make a game where my player can run fully on slopes and loops.

    Thanks.

    Here's a link for the example: mediafire.com

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Interesting question, it's recurrent here.

    You have two choices, the first one and easy, but not 100% perfect is make some invisible sprites as detectors and place them attached to your player, so, make for example 6 detectors, 3 on both sides and them an event to detect which angle is the slope and change the player angle according until the detector stop detecting the slope, also, make slopes in a group named properly to make it easy to the detector identify a slope, otherwise, your player will become crazy in any exception.

    The second way, better and used for example in games like Sonic, you'll make each slope and looping with a specific ID, when the player touch it, you'll need to set an event to detect what side is him facing and change the angle according.

    Look my very dust old and abandoned sample here to understand what I mean by detectors, for example:

    Subscribe to Construct videos now

    or download this sample of Sonic and use it: https://www.dropbox.com/s/bdjlvpo2bv5cy ... .capx?dl=0

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)