Screen size?

Get help using Construct 2

Post » Tue Feb 18, 2014 10:24 am

Ok, so after reading a bunch of different posts and tutorials on this matter(eg. Supporting multiple screen sizes) I've made a decision.
I'm gonna use Scale outer mode + landscape orentation for my game, since the way I design it it won't be a problem is the player sees more. However that still leaves a few questions so I can make this work properly, please help if you can.

1. What is the biggest size iOS device(iphone/ipad) on the market at the moment?
2. What is the most common size for iphones/ipads(and if possible which iOS version/s correspund with this size)?
3. How do I center my layouts so that they scale out from the center instead of pos 0, 0?
4. Where do I set the orentation? By landscape orentation I mean the player has to hold his device horizontaly and the game runs from right to left, or am I understanding this function wrong?

Thank you.VIKINGS2014-02-18 10:32:31
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Tue Feb 18, 2014 1:08 pm

1/2. : Google is your friend...
Nowadays, it seems to be the iphone 5 that is the most common, with a screen resolution of 320x568. The link will give you all the details.

3. : on start of layout=> set scroll to X/Y
X and Y should then be calculated based on the current displayed resolution

4. : not sure for this one but I would say that if you only do landscape, use the System.set layout angle action to put it to 90
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Tue Feb 18, 2014 1:24 pm

Cool, thank you very much.

One more thing, is there any way to edit the "Scroll to" behavior so that the camera only follows the player on the X axis(or substitue some events to achieve this)?

I know I could just make the player static and have the background scroll, but from what I remember reading in another post that has some problems when using scale outer mode.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Tue Feb 18, 2014 1:32 pm

@VIKINGS

then don't use "Scroll to" behavior. Instead of it, maybe there's an action about scrolling screen with xy coordinate.
B
23
S
8
G
1
Posts: 172
Reputation: 2,780

Post » Tue Feb 18, 2014 3:33 pm

I know there is shaircast, but like I said, that might cause problems with scale outer mode...
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Tue Feb 18, 2014 4:24 pm

@VIKINGS : I think he was thinking about the System>Scroll to position Action, which does the same as the scrollTo behaviour
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Feb 19, 2014 11:20 am

I tried, doesn't work. I found this post on making a smooth camera using the "lerp" expression. Any idea how I should modify it so it only follows my player on the X axis, ignoring the up and down movements he does?
In case you need the info, at the moment my player moves 1 pixel every tick, but that may change in harder levels.

https://www.scirra.com/tutorials/626/making-a-smooth-following-camera
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Thu Feb 20, 2014 10:59 am

Bump.
B
21
S
11
G
6
Posts: 414
Reputation: 5,335

Post » Thu Feb 20, 2014 11:02 am

Well, in this tutorial, there is an event :
Image
Keep the X as it is, and don't change the Y (put "Self.Y" in the Y slot, or a constant).
Even if there is no scroll on Y, you have to choose at what Y the camera is.
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Thu Feb 20, 2014 11:04 am

system every tick - system scrollto player.x, 350 (or whatever other y suits you)
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: amazingdream, Yahoo [Bot] and 19 guests