Pages 1
Universal Fighting Engine Forum We are no longer using the forum to answer questions due to bot attacks. Please use our discord instead: https://discord.gg/hGMZhF7 |
You are not logged in. Please login or register.
Universal Fighting Engine Forum → 2D Gameplay → 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
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.
Should I email you for support?
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
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.
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.
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.
Universal Fighting Engine Forum → 2D Gameplay → Stopping players walking outside the stage?
Powered by PunBB, supported by Informer Technologies, Inc.