Keep enemy moving upon collision with main player
butterbean
Member Posts: 4,315
I'm working on cleaning up some things on a platformer game I'm working on.
I have the enemy and player as collidable because it was the only way I could get her stomping mechanism to work properly.
When she collides with the enemy however, the enemy moves back, and I would prefer the enemy to keep moving forward without her affecting their velocity.
If anyone is working on a platformer, how can this be fixed?
I've tried constraining the enemies self.motionlinearvelocity and that didn't work...
Any ideas?
I have the enemy and player as collidable because it was the only way I could get her stomping mechanism to work properly.
When she collides with the enemy however, the enemy moves back, and I would prefer the enemy to keep moving forward without her affecting their velocity.
If anyone is working on a platformer, how can this be fixed?
I've tried constraining the enemies self.motionlinearvelocity and that didn't work...
Any ideas?
Comments