Bl4ckSh33p's Forum Posts

  • Hi. I'm looking for Android push notifications. Does your plugin (or all of the collection) work with the construct build service?

  • The app is in the store now (internal test) but its still the same. It does not trigger success or error and is stuck at the first layout. Ashley

    Not sure if I should report this as bug and I can't share my key there?

    I used on start:

    Set pub key

    register prod

    Finish regustration

    On success

    Call function, load files,

    Goto next layout

    On error

    Call function, load files,

    Goto layout

  • Hi. I added the IAP plugin and exported a debug APK via built in build service.

    In first layout I used the register product and puglic key action and finished registration.

    This shows up in debug console:

    [C3 IAP] Initialising

    scripts/c3runtime.js:442 Made with Construct 3, the game and app creator :: construct.net

    scripts/c3runtime.js:442 [C3 runtime] Hosted in DOM, rendering with WebGL 2 [Mali-G72] (standard compositing)

    main.js:11 [C3 IAP] Registering product "adfree_10_2019"

    scripts/c3runtime.js:466 [C3 advert] Event (configuration complete Error () Type () Amount (0))

    main.js:11 [C3 IAP] store ready

    Then I used the IAP triggers for On Success and on Error and both call a function to load files and continue but neither one is triggered and the app does not contine to do anything.

    Is this the normal behavior for a debug APK (app is in store already) or why is nothing happening?

    /edit: PS: Can I use the register product and complete registration actions on every layout or should I use it only once on startup?

  • I created a new apk and uploaded it to internal testing so its not in the store for everyone and I can add IAP items now. But I am still not able to find the public key anywhere.

    /edit: Forum search did not help but google search found this topic:

    construct.net/en/forum/construct-3/how-do-i-8/solved-set-mobileiap-set-138551

    Maybe someone should add the screenshot or a description where to find it to the manual? :)

  • Hi! Just tried to use the IAP plugin for the first time. The manual says you should register products and set public key on start of layout but where can I find the public key?

    The google play console does not allow to add IAP items before uploading an apk with billing authorization requirements included. How do I enable this and do I have to do this first before I can access the public key?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you very much!

    Took a while to find the "Id" in the properties but it works now. :)

    + Touch: On hold gesture over CustomButton

    -> Timeline: Set CustomButton to track "AnimButton" of the next timeline

    -> Timeline: Play SetDefaultGame with tags "AnimButton"

    -> System: Wait for previous actions to complete

    -> CustomButton: Set size to (506, 87)

    -> CustomButton: Set opacity to 100

  • Thanks for your replies!

    Only used families to spawn a random enemy and did not remember you can use them for actions.

    I added a family instance var and set the 2 array IDs to BL3 and BL2.

    I tried this and it seems to work fine. :)

    + System: On start of layout

    -> Array: Set value at 0 to "BL3"

    -> Array2: Set value at 0 to "BL2"

    ----+ System: Pick Family1 by evaluating Family1.ID="BL2"

    -----> Text: Set text to Family1.At(0)

    When I change the pick ID it shows a different value.

  • Hi. I tried to create a relative timeline for a small animation but it seems you can only use it for existing sprites (not created at runtime) and only for fixed instances.

    Is there no way to create a relative animation like increasing size and changing opacity and apply it to multiple sprites? And do I need one extra timeline for each sprite if they should not animate at the same time?

    And is there a way to copy/duplicate the values if you have to have a timeline for each sprite separately?

  • Hi! Is it possible to use a variable instead of the array object name somehow?

    I made a function to show data (loop to create text objects) and added a parameter but it seems there is no way to use the parameter in the array actions. I added x sub events with compare param = xxx and then copied to actions to each subevent. Now I have to change all sub events when I make adjustments. It would be much easier if you could replace the fixed array.At() with a string.

  • Ashley hi! I noticed that the android app with iframe still seems to "crash" of its open for a while or running in background. When I go back I can't switch layouts. It's not responding. Exported with 264.3 update.

  • .2 update fixed it. Seems it was an iframe issue.

  • Endless runner was working but it's a very tiny example.

  • Just tried the endless runner template and this one seems to work after export.

    But if remote preview works for my project and exported apk does not run there is something wrong?

    I did not change any code, events etc. just load it in the new version and build it. And the file built with previous stable runs fine.

  • I enabled USB debugging but no device appears in chrome. And usb debugging is deactivated every few minutes on the phone. its Android 9. Tried to connect it with USB several times but no device is shown.

    Advanced settings show worker as disabled already.

    And I cant go back to the old version cause autosave has overwritten the original project file before I saved it to a new file. -.-

    Remote Preview in the phone browser runs fine and the layer toggle to show the iframe works too.

    But when I export it for Android after a few seconds no buttons work and the toggle layer visibility button does nothing at all.

  • Hi. I enabled USB Debugging on my phone but inspect in chrome does not show any devices.