1 decade ago by Bushstar
In my game...
http://project.dnsalias.com/
Whenever you shoot at a sloped wall that is collision mapped the bullet does not disappear like when it hits vertical or horizontal walls. If you shoot perpendicular at the sloped wall the bullets just gather up there.
This is the collision code from my bullet entity.
Any thoughts on where the problem lies?
http://project.dnsalias.com/
Whenever you shoot at a sloped wall that is collision mapped the bullet does not disappear like when it hits vertical or horizontal walls. If you shoot perpendicular at the sloped wall the bullets just gather up there.
This is the collision code from my bullet entity.
handleMovementTrace: function( res ) { this.parent( res ); if( res.collision.x || res.collision.y ){ this.kill(); } },
Any thoughts on where the problem lies?