dop2000's Forum Posts

  • Instance variables is exactly what you need here. For example, you can create instance variable platformUID on the Lever sprite, set correct values for each Lever. When Lever is touched, pick Platform with UID=Level.platformUID and activate it.

  • Use "On touch start" event, not "Is in touch".

  • Ashley I always wanted to ask - why rgb() expression inverts the result? For example, rgb(0,10,255)=16714240 , which is #FF0A00 in hex. It should be #000AFF, why R and B values are swapped?

  • Yes, search this forum for "virtual joystick" or "virtual gamepad" or "thumbstick", there are lots of examples. Here is one I made for another post:

    dropbox.com/s/7p6fgru06zrzvpj/Thumbstick8Direction2.capx

  • Then you shouldn't have posted this in C3 forum :)

    Here is a version that doesn't use bullet stepping.

    dropbox.com/s/7tfobtbs6vqwoud/BulletTrail3.c3p

    It's not so nice looking, may require additional tweaks.

  • It's not that bad, on my laptop the trail adds about 5-10% to cpu utilization, gpu is at 0%. On a very old phone it adds 15-25% to cpu.

    .

    You can decrease fade out time, this will make the trail shorter, reduce the number of trail sprites and improve performance. You can also spawn trail sprite not on every step, for example skipping 2 in 3 steps.

    Another solution is to use just one object for each trail line, changing its width on every tick instead of fading, but this may be a bit more complicated.

  • You need to post a bug report here:

    github.com/Scirra/Construct-3-bugs/issues

  • Ashley I listed what my phone is showing me when I install the app.

    Read and write USB storage are related to WRITE_EXTERNAL_STORAGE permission.

    Full network access = INTERNET permission.

    Not sure what "Charges: Send MMS messages" is about, it's shown after the app is installed.

    Anyway, both WRITE_EXTERNAL_STORAGE and INTERNET permissions should not be added. I built an app with just one text object and nothing else and these permissions are still there! So they definitely don't come from any plugins.

  • A vanilla export shouldn't request anything more than network access

    Ashley Unfortunately it does. Here is a super-simple project with just Browser and Text objects and one event:

    dropbox.com/s/ywur7e1kzqjx8qj/PermissionTest.c3p

    And this is the AndroidManifest after building an apk with C3:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is not an easy task. You need to open console (F12) in preview and check how often the game is saved for different operations.

    Here is for example how I would deal with rotation - add a new flag stepSaveRequired and set this flag while object is rotated, but don't call "SaveStep" yet. Only when keyboard button is released and the flag is set, then call the function. You will need to do something similar for other operations. (you can re-use the flag of course)

    .

  • Hi boulerzzz, Nepeo

    I faced the same issue today - tried building my game using C3 build service and it requires a lot of things!

    1. Full network access
    2. Read the contents of your USB storage
    3. Modify or delete the contents of your USB storage
    4. Charges: Send MMS messages

    (There are no addons or plugins that need these permissions)

    I don't have any experience with Android Studio. Is it possible to get rid of these permissions when building with Cordova CLI? At least the USB storage ones. If they are added due to invalid minSDK or targetSDK parameters, where and how can I fix them?

    .

    EDIT: I managed to remove WRITE_EXTERNAL_STORAGE permission by erasing it from all .json and .xml files (after adding android platform), and then building with cordova. The app works, but it feels like a dirty hack, rather than a proper solution...

  • I don't know your layout structure. For this system to work, one instance of UNDO object should be present on all layouts where you need undo/redo.

  • — I don't have the capx from this post, but I made a similar example some time ago:

    dropbox.com/s/1cz1k5x3teikbv5/DictionaryLocalStorage.capx

  • You also need an instance of the UNDO sprite on any layout that you want to be able to use Undo on...

    Good point, I didn't think about this! Maybe you can put it on the first layout only and set it as global.