How Can I Make The Character Change His Direction When Hit The Wall

Discussion in 'How Can I...?' started by jab.devs, Dec 18, 2016.

  1. jab.devs

    jab.devs Boxer

    Joined:
    Dec 15, 2016
    Messages:
    12
    Likes Received:
    8
    I have a endless runner game at the moment..he is able to jump over obstacles and everything just fine. However at some point in the game, I want him to be able to jump off a wall switch direction and hit the opposite wall behind him to collect coins. Is there a way to do so?
     
  2. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
    I'd like to know the answer too!
     
  3. Nihat

    Nihat Serious Boxer

    Joined:
    Jun 29, 2016
    Messages:
    552
    Likes Received:
    154
    Check Wall Revers Preset.
     
  4. Arshpreet

    Arshpreet Avid Boxer

    Joined:
    Jul 20, 2016
    Messages:
    248
    Likes Received:
    50
    the way i know is that by using an action With affected set To geameplay and change game firection from 0 to 180 and set time to whatever u want,currently i dont know that is it poosible To Remove this time limitation or not
     
    volcank likes this.
  5. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Hi check the Jump Tower preset. it works in there. what happens is you add an advanced move and set it to collision and if going right set linear velocity of x to like -20 and so on. what you might do is dont have a set up for every sprite for right wall reversal but use only one invisible sprite and place it in front of your game sprites which will allow your player to change direction.
     
    Arshpreet likes this.

Share This Page