Hello To everyone!!
This is my first post.
I wondered if anyone can help me with my game, it's a metroidvania based game i'm stuck with a zoom problem maybe you guys can guide me.
I have a big layout divided by rooms (RoomZones).
When the player is near on the edge of the roomzone and gets zoom looks like this.
This is actually my camera for the player (ScrollX/Y to the player but keep them within the boundaries of the current RoomZone).
Scroll To
X: clamp(Player_Base.X, RoomZone.X + RES_WIDTH / 2, RoomZone.X + RoomZone.Width - RES_WIDTH / 2)
Y: clamp(Player_Base.Y, RoomZone.Y + RES_HEIGHT / 2, RoomZone.Y + RoomZone.Height - RES_HEIGHT / 2)
How do i limit the zoom on the edge of the roomzone?
Any thoughts?
Thanks!!