IPad Platform Game

Get help using Construct 2

Post » Fri Jan 06, 2012 1:08 pm

So there's progress ^^
Well, I have access to an Ipad2 this week end. I'll take a look at it and try to provide some solution.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Jan 06, 2012 1:21 pm

Cheers matey!

I've attached an image of my progress.

     
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 06, 2012 3:13 pm

Event 5 it should be -ADZ (-10) since a negative gamma (<0) means a tilt to the left.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Jan 06, 2012 3:19 pm

I've changed it and now nothing moves again.2Bdigital2012-01-06 15:27:35
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 06, 2012 4:36 pm

UPDATE:

I have used text to test weather the touch events are actually active and working and my results are no they do not work.

Touch.Gamma (less or equal two) -ADZ
Touch.Gamma (greater or equal two) ADZ

If I toggle the events off, the text is then set to true so what am I missing?...

Must have something to do with the touch events.

I' attached some images:

     
     
     
     2Bdigital2012-01-06 16:38:09
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Fri Jan 06, 2012 5:05 pm

Well I assumed touch.gamma returns some angle (so up to 360 and down as -360) but I might be wrong.

Your best bet is to display the value touch.gamma to check how it works. (it's maybe only returning a 1 -1 range)

Every tick set your text to touch.gamma.
From there test it and understand the results/returned values.

Than adapt the checking of the value (if touch.gamma is in the range of certain values, it means the device is tilting to the right, other set of values tilting to the left, etc...)

The fact that toggling the test makes the actions executed means that this test never returns true. So there's something with the test itself and or it's values range.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Jan 06, 2012 5:23 pm

All I get is 0 so that tells me its not picking up the tilting.
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Sat Jan 07, 2012 8:28 pm

Apparently yes.
I quickly tested this capx exported and executed in safari on iPad2.
It gives results, but the orientation of the displayer image is pretty strange. it's like the tilt right/left and front/back are somewhat inversed.
Nevertheless, I get values, other than 0.

Possible indeed that HTML5 doesn't registers the value from the device orientation on your current pad.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Mon Jan 09, 2012 8:38 am

Apparently so because I still get 0 on 1st generation iPad.

Id like to see the results on the iPad 2 so hopefully I can get a hold of one today and see the outcome.

Not sure what to do next? Is there any other option...
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Mon Jan 09, 2012 9:30 am

Hi Kyatric,

Turns out the 1st generation iPad does not support orientation which would explain the reason why it doesn't work but orientation is supported on iPad 2. iPad 1st gen only supports motion which can be used like orientation but not that well.
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: spcsmrf and 23 guests