Topic: Stopping players walking outside the stage?

Hi,

I've set the left and right boundary for the stage and the camera stops in the correct positions, but the players can just keep walking.

Is there any settings I'm missing to stop them walking off?

Thanks

Share

Thumbs up Thumbs down

Re: Stopping players walking outside the stage?

Maybe your walking animations are applying root motion and you don't have that toggled under your move animations, thus moving outside the boundaries of the character hitboxes.
Alternatively, also check Camera Options for additional distance settings

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: Stopping players walking outside the stage?

Mistermind wrote:

Maybe your walking animations are applying root motion and you don't have that toggled under your move animations, thus moving outside the boundaries of the character hitboxes.
Alternatively, also check Camera Options for additional distance settings

Thanks for the reply.

For the walks, I'm using the included E_Basic_Walk_Forward E_Basic_Walk_Backward animations. Apply Root Motion toggle is off.

In Camera Options Maximum Players Distance is 4, which keeps bother characters from walking too far apart and off screen. I don't have any zoom settings enabled.

Share

Thumbs up Thumbs down

Re: Stopping players walking outside the stage?

Should I email you for support?

Share

Thumbs up Thumbs down

Re: Stopping players walking outside the stage?

No need.
From what you said so far, it looks like the values used for Left and Right Boundaries under the Stage Options might not be matching with the stage you created.
These stage values are not tied to your actual stage, but rather the 0,0,0 Scene position. Make sure you align your stage based on those coordinates.
If you are still having issues, use any of the 2 training stage examples as a template to how its done. You can also watch this video tutorial:
https://www.youtube.com/watch?v=JdqkKPhzM8E

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: Stopping players walking outside the stage?

Mistermind wrote:

No need.
From what you said so far, it looks like the values used for Left and Right Boundaries under the Stage Options might not be matching with the stage you created.
These stage values are not tied to your actual stage, but rather the 0,0,0 Scene position. Make sure you align your stage based on those coordinates.
If you are still having issues, use any of the 2 training stage examples as a template to how its done. You can also watch this video tutorial:
https://www.youtube.com/watch?v=JdqkKPhzM8E


The issue is the camera does not keep the players in it's view. It doesn't seem to matter what values I set for the boundaries, the players keep walking to the boundary but the camera stops before that and allows the players to walk off screen.

I can't use the training room prefab as a template as I'm working in real world scale, so the stage is far too big.

Share

Thumbs up Thumbs down

Re: Stopping players walking outside the stage?

Sounds possibly like you need to check your max zoom level for the camera. As it will only zoom out so far regardless of how far the boundary is set.

Share

Thumbs up +1 Thumbs down

Re: Stopping players walking outside the stage?

MrPonton wrote:

Sounds possibly like you need to check your max zoom level for the camera. As it will only zoom out so far regardless of how far the boundary is set.

Thanks for the suggestion.

I couldn't get it to work properly until I scaled up my characters up to something similar to the demo characters scale. Seems like a bug to me, but nevermind, I've made the workaround now.

Share

Thumbs up Thumbs down