Device Orientation

Get help using Construct 2

Post » Wed Jul 03, 2013 5:49 pm

Depending on whether the user has the app in portrait or landscape orientation would impact where the sprites would be located in my situation. It is accurate to assume the project would need separate layouts for either orientation which would be toggled by the devices status? And in that case, is it better served as different layers that are called up by some global command?
B
6
S
1
Posts: 9
Reputation: 397

Post » Wed Jul 03, 2013 5:57 pm

try the Candy Crush iPad game, and see how it uses a square for the game are, just positioned different.

You can also always use System expressions like WindowWidth, LayoutWidth, Height,
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Wed Jul 03, 2013 6:04 pm

Just have an android so not sure Candy Crush is available. The question is, do these System Expressions actually send sprites and such to prescribed locations? Or is it practical to just create layers within the game to accommodate the orientation?
B
6
S
1
Posts: 9
Reputation: 397

Post » Thu Jul 04, 2013 12:02 am

yes, that will place them where you want to.
i.e.: "WindowWidth/2" will place them in the middle.

B
18
S
5
G
4
Posts: 568
Reputation: 5,079


Return to How do I....?

Who is online

Users browsing this forum: evillair, rbailey83, Solomon, vankizzle and 9 guests