WP8 accelerometer/iOS Audio.PlaybackTime

Get help using Construct 2

Post » Tue Apr 16, 2013 9:48 pm

Hello everyone,

I am working on a rhythm game prototype to be showcased on a mobile device. I wanted to ask the following.

1. Is there any way to access Windows Phone 8 accelerometer?
2. The Audio.play when set with looping does not seem to be looping on Windows Phone 8 device
3. The Audio.PlaybackTime does not seem to work on my iPOD4th Gen if I export the project using cocoonJS. Is there any workaround for this?

Thank you in advance.
B
4
Posts: 5
Reputation: 335

Post » Tue Apr 16, 2013 10:14 pm

Some expressions (like Audio.PlaybackTime) only work with the Web Audio API - and I don't know if cocoonjs makes use of this.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Wed Apr 17, 2013 8:23 am

^ Thanks sqiddster. I will take a look at cocoonJS audio functions to see if they have something similar. If I do find it, should i make edits to the .js file after exporting?
B
4
Posts: 5
Reputation: 335

Post » Wed Apr 17, 2013 2:41 pm

The Touch object's accelerometer expressions work on Windows 8.

The PlaybackTime expression ought to work even without the Web Audio API - can you share a .capx of how you're using it?Ashley2013-04-17 14:41:55
Scirra Founder
B
358
S
214
G
72
Posts: 22,946
Reputation: 178,333

Post » Thu Apr 18, 2013 9:48 am

Hey Ashley,

The touch object doesn't seem to give me response when I export it for windows phone 8. The playback time works on WP8 but even when I sent the song for loop, it doesn't seem to loop.

Here is a smaller capx I had to make since the assets were too many.
https://s3.amazonaws.com/uploads.hipchat.com/39038/269206/3vfcjvxpyisihil/TimeAndAccelerometerTest.capx
B
4
Posts: 5
Reputation: 335

Post » Sat Apr 20, 2013 9:12 am

Ashley did you get a chance to try the capx? Is there any way to get it working?
B
4
Posts: 5
Reputation: 335


Return to How do I....?

Who is online

Users browsing this forum: Draconinho, LeFuji, plinkie, totoe, Yahoo [Bot] and 18 guests