Mr G's Forum Posts

  • When my game is run in remote preview on construct 3 and tested on my phone it runs like a dream. Why does it slow down and lag in the exported debug APK version. Can anyone from Scirra offer advice please?

    I opened the example game Glokar in C3 and added touch screen controls to play on my phone, then exported a debug APK. When I play this on my phone there is also noticeable lag. If you try this you can see jumpiness/slowdown in the objects that move on the title screen, - this gives me confidence that it's not my game causing lag but something to do with the built APK.

  • Thanks NN81 I spent a full day yesterday learning new compilers to see if I could get a build from Construct 3 but I had nothing but errors when trying to compile using Cordova CLI, also no success with phonegap from the C3 project. I did some testing to find out what the problem is, and to me it seems C3 export/build is causing the lag in game (When the project is a .c3p file). I switched over to C3 a week ago from C2 and carried on building my game in C3. I took my most recent C2 copy of the game and built using C3 export and the debug APK runs sweet.

    Unless someone from Scirra can reassure me that release APKs won't have this same problem, I am faced with finishing my game in C2 because this lag doesn't exist when it's built using C3 build server.

    I also tried Cocoon which successfully compiled my C2 game and produced a smooth debug APK. Cocoon did not complete any builds of my C3 game at all, always saying that it couldn't read the config.xml file

    I just don't get why the lag is present when the project is compiled from C3, but it runs super smooth when built from a C2 project.

    I really want to continue my game in Construct 3 but I am unable to produce a smooth debug APK and also unable to compile a C3 build using Cordova, phonegap and cocoon, all of which give errors.

    Any advice would be appreciated, thanks

  • I love the speed in which you can create a working APK to test on a phone, but when installed it runs very jittery, it lags, slows down etc. The app runs perfectly on remote preview, there are no optimisation issues. I am exporting/building using built in debug APK option on C3.

    This same problem was reported here some months ago https://www.scirra.com/forum/cordova-stuttering-on-android_t191976?&start=20&hilit=debug+apk The fix was to give the option to create android and ios builds separately. However, I am using just the android option but experiencing the exact same slow down/lag in the APK when running on my phone.

    Why does the Debug APK run like this, it makes my game unplayable. Is there something I can change?

    Is there a different method for building an APK that I can test on my android device (one that is quick like the built in C3 export option). The only other build program I have experience with is Intel XDK but the build function is no longer available.

    Any recommendations greatly appreciated

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Good tips, thank you. Got it working now

  • I'm sure this is straightforward but I can't find the answer on the forums and everything I have tried doesn't work....

    I have a global variable PlayerLives=3 this works fine in the first layout. As a life is lost it subtracts 1 from the global variable.

    The problem is that I have a reset global variables to default event at the start of a new layout. So when a new level of the game begins the lives go back to 3. I want the number of lives to stop resetting on start of layout. If I end level 1 with 2 lives remaining, I want to begin level 2 with 2 lives remaining.

    I think the solution has something to do with a local variable for number of lives but i'ts not working out for me.

    Can someone please point me in the right direction. Thanks!

  • I managed to work out the problem... Sort of.

    My computer is a Macbook running Windows 10 using Apple bootcamp software. When transferring the APK by USB cable and Google drive upload, then download to phone, none of these methods work and result in the error as shown in the screenshot above

    But......

    I opened my Capx on a Windows PC and rebuilt the APK, transferred to phone with USB cable and it works!

    Same on my chromebook, built the APK and transferred using google drive to phone and that also works.

    Ashley There must be a problem with building/compiling when using a Macbook running Windows. Hope this info is useful for ironing out bugs with Construct 3.

  • The apps were built using C3 on a computer then the APK transferred to the phone with USB cable. The APK installs on phone successfully, but when the app is opened the screen goes white for about 20 seconds then the "Application Error" message pops up. The main reason I have come to Construct 3 is for the app building/compiling that is built in, but I can't get it to work

  • I am trying to build a debug APK I have my phone set on developer mode. I have followed all the instructions correctly to export using the C3 exporter but when I open the app on the phone all I get it this message very time. I've tried it on other phones and I've built another app for export to try it with that, but get the same on screen message on the phone every time. Does anyone know how I can get the APK to run correctly? Thanks

  • Thanks for pointing me in the right direction

  • I have 2 objects, the first is the player and uses 8direction movement. The second is a sprite that follows the player movement at a fixed distance like a shadow using this event:

    [Every Tick set position of shadow to player.X and player.Y+30], this object has no behavior attached.

    I need the player to be able to bounce off solids and the shadow to make the exact same movements as the player bounces.

    I have tried all the built in behaviors (Bullet bounce off object, 8direction reverse, apply physics force, and car behavior) they all bounce the player off the solid but the shadow does not follow the bounce movement of the player accurately. It seems that the set position event on the shadow does not run correctly when the player is bouncing using any of the behaviors.

    Is there a way for the shadow sprite to follow the exact movement of the player and for the player and the shadow to maintain the set distance between them when the player is bouncing off a solid?

  • LittleStain Are you able to re-upload this capx. It's sounds just what I'm looking for but its' currently 404 not found. Thanks

  • Good tip, I'll implement that, cheers!

  • Thanks for the help guys. LukeW your capx is just what I was looking for thanks!

  • I've had a good look around the forums but the dropbox links for this type of question are all too old and don't work. I'm trying to create the laser bouncing effect as seen in the game R-Type. Lots of youtube videos on this great game. If I was using a small sprite the bullet behavior would work fine, but the lasers need to be quite long, this causes the bounce to be inaccurate.

    When the fire button is pressed lasers are spawned and travel at different angles, they continue to grow in length as they leave the spawn point and bounce off every object whilst leaving the trail of where it had previously bounced.

    Good example in the youtube video below at 2:30

    Anyone know hot to create this?

  • Works like a charm. Thank you very much