hyperPad Halloween Challenge! **EXTENDED**
-
This post is deleted! -
It's gonna be great! Good luck everyone! :)
-
@Murtaza Is there any tutorials on how to properly make everything scale across different screen sizes? Maybe @RobinsonX you're the most knowledgeable?
-
This post is deleted! -
@Kamdroid You can constantly use the "Get Screen" behavior, and depending on the ratio, you can adjust UI accordingly. If I had a 4:3 aspect ratio, the pause button should be at 100% of it's original scale, if I had a 6:9 aspect ratio, the pause buttn should be around 75% of it's original scale, etc.
-
The "Tappy Plane" tutorial briefly explains working with multiple aspect ratios near the end.
https://hyperpad.zendesk.com/hc/en-us/articles/360014091132-How-to-Make-Tappy-Plane-Flappy-Birds-Clone-
We also have an article on designing for multiple screen sizes
https://hyperpad.zendesk.com/hc/en-us/articles/210679023-Multiple-Screen-Sizes-and-DevicesBasically if you change the objects position to be % based instead, it magically works (sort of...) On % based positioning, the objects position is a specified percentage of the screen.
so 50% would be the middle.Typically, your background should be large enough to fit through all desired devices, usually want to avoid scaling or positioning this.
UI elements you want to position based of %.Objects like the level and player, you typically want centred. But this depends on the game, and requires some playing around with. Some games you can compromise and cut off the parts of the level, other times you need to change the camera zoom or position. And in extreme cases you may have to scale the objects.
-
@RobinsonX said in hyperPad Halloween Challenge!:
@Kamdroid You can constantly use the "Get Screen" behavior, and depending on the ratio, you can adjust UI accordingly. If I had a 4:3 aspect ratio, the pause button should be at 100% of it's original scale, if I had a 6:9 aspect ratio, the pause buttn should be around 75% of it's original scale, etc.
You probably don't want to constantly use get screen. You can just do it once at the beginning. Because realistically the user won't be changing aspect ratios. Well I guess they can within hyperPad.... hmm..
-
I'll just make an option for users to restart the project, just in case if people want to try out different aspect ratios on hyperPad. If it was in the app store, that feature wouldn't be necessary, but it would have a use.
-
Realistically you shouldn't have to do it more than once but this is hyperPad, so yeah. Maybe we need a behaviour that detects when hyperPad is paused 😛 (how useless, this behaviour would not work if one were to submit to the App Store).
-
Maybe some special behaviour block that only executes if the project is ran inside hyperPad (and gets excluded when compiled for the App Store)
Though there's thousands of better features that need to be added first.
-
After much demand, we've extended the challenge.
We will now be accepting submissions until the end of November!Remember submit early so you can get feedback from the community and improve your project. Plus gives you more time to get likes which will be used to select the winners!