drag and drop very slow

Get help using Construct 2

Post » Mon Aug 13, 2012 6:06 pm

Hello,
I'm trying to make a puzzle game and using the drag and drop works very slow on a real device with Android (I used PhoneGap). Does anyone know tell me what is that?

Thanks!
B
6
Posts: 19
Reputation: 713

Post » Mon Aug 13, 2012 9:02 pm

what is the fps?
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Mon Aug 13, 2012 11:28 pm

I don't understand, Where I can check the fps?
I have several pieces of the puzzle and the user only makes drag and drop.

Thanks!
B
6
Posts: 19
Reputation: 713

Post » Tue Aug 14, 2012 12:01 am

+text object -> set text to "fps"

"fps" is a system expression
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Tue Aug 14, 2012 12:48 am

I added "Item1" "DragDrop is dragging" -> set text to fps
Executing it on the web appears on 50 fps, although there are peaks of 14, 20, 65, 80 ...

When I can prove it on a real device (build.phonegap.com now does not work) and see the values.

Anyway, if the values ??are low, what would be the way to solve it?

Thank you very much for responding so quickly.

Regards,
Ruben.
B
6
Posts: 19
Reputation: 713

Post » Tue Aug 14, 2012 1:19 am

I just try on the real device and operating at 4 and 5 fps.
Why running slowly?
B
6
Posts: 19
Reputation: 713

Post » Tue Aug 14, 2012 4:31 am

PhoneGap in general is pretty slow..
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Tue Aug 14, 2012 9:33 am

then there is no way to work better, even without PhoneGap?
B
6
Posts: 19
Reputation: 713

Post » Tue Aug 14, 2012 9:43 am

If the drag and drop behavior is working slowly, have you considered making your own drag and drop set of events?

Maybe you can detect the touched object and move to the position of the touch at every tick with touch.x and touch.yRory2012-08-14 09:43:32
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Wed Aug 15, 2012 7:23 pm

Hello,
I did what you said using events instead of drag and drop but the effect is the same. I've noticed that with a more modern device works perfectly, but I'd like it to work reasonably well on older devices.
I tried to make a native Android application by adding a WebView and has improved a lot, but I'd still like to improve it more.
I read that with appMobi can increase the speed and am trying to use it, but I have a problem. I export the project as appMobi (experimental) from Construct 2 and when appMobi imported it into ocurres the following error:
"The appMobi JavaScript Library is missing". Puts you copy the following in all my html files:

<! - The line below is required for access to the appMobi JS library ->
<script type="text/javascript" charset="utf-8" src="http://localhost:58888/_appMobi/appmobi.js"> </ script>

<script type="text/javascript" language="javascript">
        / / This event handler is fired eleven the appMobi libraries are ready
        onDeviceReady function () {
             / / use appMobi device viewport resolution to handle if you want Differences
             / / AppMobi.display.useViewport (768.1024);

             / / hide splash screen Now That our app is ready to run
             AppMobi.device.hideSplashScreen ();
        }

        / / initial event handler to detect when to appMobi is ready to roll
        document.addEventListener ("appMobi.device.ready" onDeviceReady, false);
</ script>

I tried to do it but to upload it back again gives me the same error message.

I followed the tutorial "http://www.scirra.com/tutorials/304/how-to-export-to-appmobi-with-directcanvas/page-1" along with "http://www.appmobi.com/documentation/content/Tutorials/Tutorial_GettingStarted/index.html?r=8448 "

Does anyone have experience with appMobi?
Thank you very much.
B
6
Posts: 19
Reputation: 713

Next

Return to How do I....?

Who is online

Users browsing this forum: currypuff, makotto, randomly, Walessio and 23 guests