Question for the iOS-devs

Get help using Construct 2

Post » Sun Jan 12, 2014 10:35 am

Hi there!

So - we got our game working almost 60fps on every other iOS7-device except the iPhone 4. I'm currently optimizing everything I can to get it running at 30fps, but it seems I can't reach it without touching the core elements.

It got me thinking do any of you guys know if there's a way of telling what device the user is on? I was thinking checking the resolution, but 4S has the same screen so it kinda f*cks up that plan.

Any ideas?
Image
B
93
S
36
G
17
Posts: 351
Reputation: 15,828

Post » Sun Jan 12, 2014 11:21 am

You could always resort to asking the user in the menu.
B
226
S
60
G
33
Posts: 902
Reputation: 39,989

Post » Sun Jan 12, 2014 11:47 am

[QUOTE=Paradox] You could always resort to asking the user in the menu. [/QUOTE]

Yes, you're right. Maybe I should just add the options menu I've been trying to avoid. Thanks for the idea!
Image
B
93
S
36
G
17
Posts: 351
Reputation: 15,828

Post » Sun Jan 12, 2014 12:44 pm

Hi!

If you have a way to get actual access to the Objective C code you could ask the user for the device name like this:

NSString *deviceName = [[UIDevice currentDevice] name];

This should return the devices name.

I have no idea how you would get access to the objective c code though. it may be a case of checking how and where the script is and manually modifying the variables using objective c :D. Might actual be quite straight forward.
tsugaruddr2014-01-12 12:48:21
B
3
Posts: 36
Reputation: 299

Post » Sun Jan 12, 2014 2:33 pm

[QUOTE=tsugaruddr] Hi!

If you have a way to get actual access to the Objective C code you could ask the user for the device name like this:

NSString *deviceName = [[UIDevice currentDevice] name];

This should return the devices name.

I have no idea how you would get access to the objective c code though. it may be a case of checking how and where the script is and manually modifying the variables using objective c :D. Might actual be quite straight forward.
[/QUOTE]

An interesting idea, thanks! Maybe I should take look at it in Xcode, I have to compile the file to the App-review that way anyhow. Hmm.
Image
B
93
S
36
G
17
Posts: 351
Reputation: 15,828


Return to How do I....?

Who is online

Users browsing this forum: Cubus32 and 6 guests