dantedevil
Well-known member
It's aniway to create a script for check distance to wall, then change the animation.
I want use for the Raiden torpedo, when he hit a enemy, pushes him to the edge of the screen, and then released.
The problem is when a wall is in front because the Raiden torpedo flying in front of the wall with the enemy gabbed, when realese the enemy sometime pass through the wall.
I try setting the antiwall script, but in this animation always fail.
With a script for check wall and change with a certain animation the problem is solved, because Raiden release the enemy crushing with the wall.
This way look much better.
I want use for the Raiden torpedo, when he hit a enemy, pushes him to the edge of the screen, and then released.
The problem is when a wall is in front because the Raiden torpedo flying in front of the wall with the enemy gabbed, when realese the enemy sometime pass through the wall.
I try setting the antiwall script, but in this animation always fail.
With a script for check wall and change with a certain animation the problem is solved, because Raiden release the enemy crushing with the wall.
This way look much better.