Need help with enemy territory
prasantha60
Member Posts: 7
I am creating game which as sea and sky. Sea creature in the sea they accelerate toward the character. My problem is I don’t want this sea creature to go above the sea. What I did was I put 2 boundary actors top and bottom of the sea. Every time this sea creature hit the boundaries set sea creatures motion line X and Y to be 0. This tactic working some time , but sometimes sea creatures going above the boundaries.
Please can anyone help me , how can I fix it
Please can anyone help me , how can I fix it
Comments
When `SeaCreature.position.y` >= predefined number based min y position of the sky:
"set sea creatures motion line X and Y to be 0"