DaVikingCode / Citrus-Engine

Modern AS3 Game Engine
http://citrusengine.com/
Other
549 stars 231 forks source link

Jump bug CE 3.1.12 + Nape #294

Closed grushan closed 7 years ago

grushan commented 7 years ago

Hello. If your hero jump to the wall and you hold your movement key, the hero will hang on the wall.

override protected function createMaterial():void {

    super.createMaterial();
    _material.staticFriction = 0; //this line added
    _material.elasticity = 0;
}

I apply this code for the hero and wall - does not help. How else can you solve this problem?

Watch video: https://youtu.be/3oD2NR1tF28 Sorry for my bad English.

gsynuh commented 7 years ago

Hi @grushan , you should also consider setting a (0) value for _material.dynamicFriction as Hero is dynamic so it should factor in as well.

grushan commented 7 years ago

@gsynuh oh, thanks! Its really work!