
Resolution Update
So, not a lot of progress in terms of game... anything, really, but some resolution based GUI has been figured out.
Okay, so, I was using a mixture of Pixelated Pope's resolution code from GM1 and his camera tutorial. Long story short, I use the camera's view and height multiplied by a window scale for sizing the window, the surface, and the GUI layer.
What I ended up doing was having the max window scale be calculated based on the resolution, instead of using a consistent number.
The issue there was that on more extreme resolutions the GUI layer would become so large that the text size would vary significantly, which would've let to uses later such as when trying to do a dialogue box.
Now I use a window scale of 3, and it helps with text consistency.
Another issue was that I separated the above resolution code from the camera object, so when the camera's view and height changed, the camera was left the same, which meant it wouldn't follow the player properly.
That has been fixed by checking if the object exists, and accessing it's variables if it does. Basically, I think this might solve some of the potential issues that I was worried about.
Resolution logic: https://www.youtube.com/watch?v=_g1LQ6aIJFk&t=1s
Other Videos By Ji'aska Coding
2020-02-18 | Enemy WIP |
2020-02-06 | Day Cycle Update |
2020-02-06 | Day and Cycle |
2020-01-26 | Everything So Far |
2019-12-24 | Main Menu WIP |
2019-12-21 | Finished Portal Mechanic |
2019-12-20 | Portals Are Back |
2019-12-07 | Water Reflection |
2019-12-07 | STUPID WIDE FOR NO REASON |
2019-12-07 | Multi Player Support |
2019-12-06 | Resolution Update |
2019-12-03 | Consistent Spacing Between Gamespace and GUI |
2019-12-03 | Screen Resolution Challenge |
2019-11-07 | Testing Code: Ring Health |
2019-05-21 | Shooting Game: Cluster of Enemies |
2019-04-24 | Shooting Game: Wall Crawlers |
2019-04-24 | Shooting Game: Shield Enemy WIP 2 |
2019-04-20 | Shooting Game: Blocking Enemy WIP |
2019-04-03 | Shooting Game - More Enemy Stuff |
2019-03-30 | Shooting Game: *New* Enemy |
2019-03-16 | Shooting Game - Enemy hit animation |