Stop The Character From Moving When Touched By Object.

Discussion in 'How Can I...?' started by Jaky1, Dec 3, 2016.

  1. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    Now this is kind of a reverse than my previous issue. I now want my character to not move at all when hit by an object. I have set Platform friction to 0 still when it hits it set the character to a linear velocity a very low and it slowly goes out of screen. in the direction of the object.

    I want this stopped..

    Any help would be appreciated.

    Thanks!
     
  2. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
  3. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    If you Add an `Advanced Move`->Collision->Your Object-> Replace->Linear Velocity 0 and 0 ?
    (this stop your character from moving)
    PS don't let them empty, add 0 and 0
    But if you want do not slide(glide) your character ,increase your platform friction to 50-100...
    and also be carefull with `Air Drag` you can play with that also to `stop` the character
     
    Last edited: Dec 4, 2016
    Christoph likes this.
  4. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @blad300 Tried not working..

    I want my character to not move, the object should move...What my problem is when I jump on the object, it start motion in a direction, even though its friction is 0..
     
  5. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    I edit the post, your try all ?
     
  6. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    I did increase the friction to 100 and now the character moves with the object. What I want to achieve is the object should slide from below the character, without moving the character.

    Thanks!!
     
  7. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
  8. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Have you tried a hack like an invisible wall ? Once the character touches the platform and it begins to move, 1 invisible wall is spawned and stops the character 0.1 seconds just enough so it's velocity is back to 0
     
    Jaky1 likes this.
  9. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @meremy.. Interesting. Thanks!
     

Share This Page