How do I make Teleport Ability?

0 favourites
  • 5 posts
From the Asset Store
🙌 Ability Skill UI Sound Pack comes with 115 high-quality sound effects
  • How i can make horizontal Teleport ability in platform game when i jump and press button

    Sounds easy but i really dont know how to do this my character stuck in wall.

    Like in this game youtu.be/qq_7lBNCUgI

    Sry for bad eng.

    And thanks for help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would set up a nested event system.

    Try something like

    int distanceToJump = (some number)

    On key down

    > on key pressed

    >loop from (1 to distanceToJump)

    > character set x to (self.X + 1)

    Then you can check if you have hit a wall because you increment by 1 in a very short amount of time. It will still look like you teleported even though it isn't instantaneous.

    I hope this answers your question!

  • Are the levels static?

    Create an invisible sprite and use it as helper.

    Before the tp, compare angle and if its coliding with this helper, if so, teleport the player through the wall.

  • Thnkas for help i try do this i can say im noob always will be nice when see capx :)

    But really thanks for help! :)

  • I would set up a nested event system.

    Try something like

    int distanceToJump = (some number)

    > On key down

    > on key pressed

    >loop from (1 to distanceToJump)

    > character set x to (self.X + 1)

    Then you can check if you have hit a wall because you increment by 1 in a very short amount of time. It will still look like you teleported even though it isn't instantaneous.

    I hope this answers your question!

    I dont know how to do this im little new on C2/3 can u send capx plz

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