1 decade ago by SlinkyDinky
This is my entity:
Very rarely it seems to bounce back from hitting the collision layer. Most of the time it simply stops, and continues along the axis of the collision layer if it's velocity allows it.
Any ideas why?
EntityEnemy = ig.Entity.extend({ animSheet: new ig.AnimationSheet('media/sprites.png', 10, 10), size: {x: 10, y: 10}, bounciness: 1, type: ig.Entity.TYPE.B, collides: ig.Entity.COLLIDES.ACTIVE, init: function(x, y, settings){ this.parent(x, y, settings); this.addAnim('idle', 1, [2]); },
Very rarely it seems to bounce back from hitting the collision layer. Most of the time it simply stops, and continues along the axis of the collision layer if it's velocity allows it.
Any ideas why?